# Dockerfile — hosted demo image for Fly.io
FROM python:3.11-slim

WORKDIR /app

# Install examen from PyPI (uses the version published in Task 1.8)
RUN pip install --no-cache-dir examen==0.2.0

# Copy the canned fixture quiz the hosted demo will serve
COPY skill/examen/examples/example_quiz.json /app/quiz.json

EXPOSE 8080

ENV EXAMEN_DEMO_MODE=1

CMD ["examen", "serve", "/app/quiz.json", \
     "--host", "0.0.0.0", "--port", "8080", "--ephemeral", "--no-browser"]
