This commit is contained in:
ls
2024-10-21 11:21:15 +08:00
parent 2fef1667d5
commit 90054a0cf0
25 changed files with 1218 additions and 223 deletions

View File

@@ -12,5 +12,10 @@ RUN pip install --no-cache-dir -r requirements.txt
# 设置环境变量
ENV FLASK_APP=main.py
ENV PYTHONUNBUFFERED=1
EXPOSE 5000
# 启动 Flask 应用
CMD ["flask", "run", "--host=0.0.0.0"]
#CMD ["gunicorn", "--bind", "0.0.0.0:5000", "main:app"]