Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425FROM python:3.11-slim
WORKDIR /app
# Install Python dependenciesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
# Copy application sourceCOPY 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"]