Files
chore/backend/Dockerfile
T
ryan 7e4a08d415
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 2m18s
feat: update Gunicorn command to use wsgi:app and add wsgi.py for application entry point
2026-07-30 00:29:41 -04:00

18 lines
456 B
Docker

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5000
ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=utf-8
VOLUME ["/app/data"]
# Use Gunicorn instead of python main.py
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "-k", "gevent", "--workers", "1", "--timeout", "120", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "-c", "gunicorn.conf.py", "wsgi:app"]