feat: Deploy the project using Docker
This commit is contained in:
5
backend/Dockerfile
Normal file
5
backend/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
|
||||
COPY . /app
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
||||
echo 'Asia/Shanghai' >/etc/timezone && \
|
||||
pip install --no-cache-dir --upgrade -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
|
Reference in New Issue
Block a user