FROM python:3-slim

WORKDIR /app
COPY . .

RUN pip install --extra-index-url https://pkgs.ratewatch.internal/simple \
        -r requirements.txt ratewatch-metrics \
    && pip install --upgrade gunicorn

EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:create_app()"]
