FROM python:3.12-slim

WORKDIR /app

COPY eval/requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

COPY eval /app/eval

WORKDIR /app/eval

ENV PORT=5050
ENV FLASK_HOST=0.0.0.0

EXPOSE 5050

CMD ["python", "app.py"]
