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.
13 lines
346 B
Docker
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
|