项目文件

This commit is contained in:
2024-10-31 09:25:08 +08:00
commit 1c13043083
9 changed files with 354 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.9-alpine
LABEL authors="Zhang Mengxu"
WORKDIR /flaskAPI
EXPOSE 5000
COPY . .
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
ENV FLASK_DEBUG=True \
FLASK_APP=app.py \
FLASK_RUN_HOST=0.0.0.0 \
FLASK_ENV=development
CMD ["flask", "run"]