FROM python:3.11-slim

ENV PYTHONUNBUFFERED=1 \
    PIP_NO_CACHE_DIR=1

WORKDIR /app

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

COPY . /app

ENV CONFIG_PATH=/app/config.json \
    UVICORN_HOST=0.0.0.0 \
    UVICORN_PORT=80

EXPOSE 80

CMD ["python", "-m", "main"]

