From 1271e26dd8ec47da965f2fd48ae94342a4be7981 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Thu, 12 Feb 2026 04:01:35 +0000 Subject: [PATCH] Changed Docker CMD to remove redundant run.sh --- Dockerfile | 4 ++-- barker/run.sh | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) delete mode 100755 barker/run.sh diff --git a/Dockerfile b/Dockerfile index 136e1cd4..219f451c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/barker/run.sh b/barker/run.sh deleted file mode 100755 index 96007096..00000000 --- a/barker/run.sh +++ /dev/null @@ -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