13 lines
348 B
Docker
13 lines
348 B
Docker
FROM python:3.11-slim-bullseye
|
|
|
|
RUN python -m pip install "poetry==1.8.2"
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN poetry config virtualenvs.in-project true
|
|
RUN poetry install --only main
|
|
|
|
ENTRYPOINT ["poetry", "run", "gunicorn", "-k", "uvicorn.workers.UvicornWorker", "--access-logfile", "-", "--bind", "0.0.0.0:80", "--timeout", "60", "app:app"]
|
|
|
|
EXPOSE 80
|