feat: Deploy the project using Docker

This commit is contained in:
zy7y
2022-10-08 12:09:20 +08:00
parent 0fb9718153
commit 987345f724
8 changed files with 342 additions and 2 deletions

5
backend/Dockerfile Normal file
View 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/