FROM python:3.11-slim WORKDIR /app # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application source COPY server.py . COPY sim/ sim/ COPY fetcher/ fetcher/ COPY static/ static/ # Create data directory (legacy SQLite endpoints; not critical in prod) RUN mkdir -p /data ENV PYTHONUNBUFFERED=1 COPY wsgi.py . EXPOSE 8920 CMD ["gunicorn", "--bind", "0.0.0.0:8920", "--workers", "2", "--timeout", "60", "wsgi:app"]