Changed Docker CMD to remove redundant run.sh

This commit is contained in:
2026-02-12 04:01:35 +00:00
parent 2ae3f3ba7e
commit 1271e26dd8
2 changed files with 2 additions and 5 deletions

View File

@ -56,6 +56,6 @@ ENTRYPOINT ["docker-entrypoint.sh"]
# at the end of your Dockerfile, before CMD or after EXPOSE
# Kill the main process if the healthcheck fails. This will kill the container and restart policy can restart it.
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD curl -f http://localhost/health || kill -s 15 1
CMD curl -fsS http://localhost/health || kill -s 15 1
CMD ["poetry", "run", "/app/run.sh"]
CMD ["gunicorn", "barker.main:app", "--worker-class", "uvicorn.workers.UvicornWorker", "--config", "./gunicorn.conf.py", "--log-config", "./logging.conf"]

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
exec gunicorn barker.main:app --worker-class uvicorn.workers.UvicornWorker --config ./gunicorn.conf.py --log-config ./logging.conf