add docker imp

This commit is contained in:
2026-06-12 17:16:36 +08:00
parent d8dccfc04c
commit 31c4d460db
4 changed files with 15 additions and 2 deletions

View File

@@ -14,9 +14,12 @@ RUN pip install --no-cache-dir -r requirements.txt
# 复制应用代码
COPY . .
# 启动脚本加执行权限
RUN chmod +x start.sh
# 创建默认上传目录
RUN mkdir -p /app/uploads
EXPOSE 5000
CMD ["python3", "app.py"]
CMD ["./start.sh"]