Files
msys2-web/Dockerfile
Christoph Reiter 52458c932a Simplify the docker image build a bit
We use the official Python image now, so no need to install it extra.
Also just use one build step, we only have poetry left at the end which
ww would in theory not need, but that's not worth the hassle.
2022-03-11 10:43:31 +01:00

13 lines
346 B
Docker

FROM python:3.10-slim-bullseye
RUN python -m pip install "poetry==1.1.13"
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