# Use the official Python image
FROM python:3.14-slim

# Set the working directory in the container
WORKDIR /app

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the application into the container
COPY app.py .
COPY templates/ templates/
COPY static/ static/
COPY data/ data/

# Expose port 80
EXPOSE 80

# Start the app via a production WSGI server
CMD ["waitress-serve", "--host=0.0.0.0", "--port=80", "app:app"]
