FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY templates ./templates
RUN mkdir -p /app/data
ENV DATA_DIR=/app/data COOKIE_SECURE=1
EXPOSE 8000
CMD ["waitress-serve","--host=0.0.0.0","--port=8000","app:app"]
