Auto-generated by Trail System

This commit is contained in:
Ivan087
2025-11-28 11:04:20 +08:00
commit c4580fc437
6 changed files with 77 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
# Build stage
FROM python:3.9-slim as build
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Runtime stage
FROM python:3.9-slim
WORKDIR /app
COPY --from=build /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
COPY . .
RUN pip install --no-cache-dir gunicorn
EXPOSE 5000
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]