|
- FROM python:3.11-bookworm
-
- RUN apt update && apt install -y tini ca-certificates && \
- apt-get clean && \
- rm -rf /var/lib/apt/lists/*
-
- WORKDIR /dispatcher
- COPY requirements.txt .
- RUN pip install -r requirements.txt
-
- COPY main.py .
-
- ENV DISPATCHER_SETTINGS=/dispatcher/config.py
- ENTRYPOINT [ "/usr/bin/tini-static", "--", "gunicorn", "-w", "4", "--access-logfile=-", "main:app" ]
|