FROM python:3.12-slim

WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py ./
EXPOSE 1234
USER 1234
CMD ["gunicorn", "--workers", "1", "--bind", "0.0.0.0:1234", "app:app"]
