FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY copilot ./copilot
COPY eval ./eval
# the site's lessons are mounted at /site (see docker-compose.yml)
ENV LWP_SITE=/site
EXPOSE 8000
USER nobody
CMD ["uvicorn", "copilot.api:app", "--host", "0.0.0.0", "--port", "8000"]
