diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -1,13 +1,8 @@ -FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.9-slim +FROM --platform=linux/amd64 ghcr.io/owl-corp/python-poetry-base:3.12-slim # Allow service to handle stops gracefully STOPSIGNAL SIGQUIT -# Install C compiler and make -RUN apt-get update && \ - apt-get install -y gcc make && \ - apt-get clean && rm -rf /var/lib/apt/lists/* - # Install dependencies WORKDIR /app COPY pyproject.toml poetry.lock ./ @@ -24,4 +19,4 @@ ENV GIT_SHA=$git_sha # Start the server with uvicorn ENTRYPOINT ["poetry", "run"] -CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:8000", "-k", "uvicorn.workers.UvicornWorker", "backend:app"] +CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "8000"] |