feat: Deploy the project using Docker
This commit is contained in:
1 parent
0fb9718153
commit
987345f724
8 files changed
+342
-2
No files matched your search
@@ -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