msys2-web/Dockerfile
Christoph Reiter e36d5effcf Update deps
remove standard deps from uvicorn, we don't really need all of
them, except maybe uvloop, but I don't see a difference.
2025-10-09 19:38:22 +02:00

17 lines
466 B
Docker

FROM python:3.14-slim-trixie
RUN apt-get update && apt-get install -y --no-install-recommends \
media-types \
&& rm -rf /var/lib/apt/lists/*
RUN python -m pip install "poetry==2.2.1"
COPY . /app
WORKDIR /app
RUN poetry config virtualenvs.in-project true
RUN poetry install --only main
ENTRYPOINT ["poetry", "run", "gunicorn", "-k", "uvicorn_worker.UvicornWorker", "--access-logfile", "-", "--bind", "0.0.0.0:80", "--timeout", "60", "app:app"]
EXPOSE 80