diff options
author | 2024-06-07 19:58:47 +0100 | |
---|---|---|
committer | 2024-06-07 21:00:18 +0100 | |
commit | e8106f3a43c161ee7c47dd77f6319744e06bb1cd (patch) | |
tree | 63ab1ebb24faf1b177a570d46de0131d89e810b7 | |
parent | Merge pull request #1335 from python-discord/dependabot/pip/ruff-0.4.8 (diff) |
Update Dockerfile to use production run command
-rw-r--r-- | Dockerfile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -39,6 +39,8 @@ RUN if [ $STATIC_BUILD = "TRUE" ] ; \ then SECRET_KEY=dummy_value poetry run python manage.py distill-local build --traceback --force ; \ fi -# Run web server through custom manager -ENTRYPOINT ["poetry", "run", "python", "manage.py"] -CMD ["run"] +ENTRYPOINT ["poetry", "run"] +CMD ["gunicorn", "--preload", "-b", "0.0.0.0:8000", \ + "pydis_site.wsgi:application", "-w", "2", "--statsd-host", \ + "graphite.default.svc.cluster.local:8125", "--statsd-prefix", "site", \ + "--config", "file:gunicorn.conf.py"] |