This commit is contained in:
ls
2024-10-18 11:54:55 +08:00
parent ed6d4cc177
commit 6189eefad2
6 changed files with 12876 additions and 0 deletions

16
scripts/Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM python:3.12.7-slim-bookworm
# 设置工作目录
WORKDIR /app
# 复制要求的文件
COPY . /app
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt
# 设置环境变量
ENV FLASK_APP=main.py
# 启动 Flask 应用
CMD ["flask", "run", "--host=0.0.0.0"]