This commit is contained in:
ycg 2025-08-25 14:44:37 +08:00
parent d92dadd3a0
commit a7a3a9a4a8

View File

@ -6,4 +6,4 @@ RUN pip install --no-cache-dir -r requirements.txt # 禁用缓存减小体积
COPY . .
EXPOSE 5000
USER appuser # 切换非 root 用户
CMD ["gunicorn", "app:app"]
CMD ["python main.py"]