diff options
author | 2024-07-08 15:09:17 +0100 | |
---|---|---|
committer | 2024-07-08 15:09:17 +0100 | |
commit | 642c0795c8738bf8b9ae39b9cf0180f7cdbac650 (patch) | |
tree | 4a075255d00d9f8a2f369567bdb79f6eefa4be9a /Dockerfile | |
parent | Migration to official Sentry release CI action (#275) (diff) | |
parent | Stop using gunicorn and use uvicorn directly to run application (diff) |
Merge pull request #276 from python-discord/jb3/environ/python-3.12
3.12 + Updates
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"] |