msys2-web/Dockerfile
Christoph Reiter c7dc9f0990 docker: use a smaller image
good enough
2023-01-06 07:04:18 +01:00

13 lines
345 B
Docker

FROM python:3.11-slim-bullseye
RUN python -m pip install "poetry==1.2.2"
COPY . /app
WORKDIR /app
RUN poetry config virtualenvs.in-project true
RUN poetry install --no-dev
ENTRYPOINT ["poetry", "run", "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--access-logfile", "-", "--bind", "0.0.0.0:80", "--timeout", "60", "app:app"]
EXPOSE 80