From 59d2a40dbb6265fab6b4a183b072d34c9b00a132 Mon Sep 17 00:00:00 2001 From: Chiara Rasi Date: Thu, 21 Nov 2024 15:37:24 +0100 Subject: [PATCH 1/2] Fix Dockerfile --- CHANGELOG.md | 3 +++ Dockerfile | 28 +++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4e6fd5..c9e0410 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.7.1] +### Fixed +- Replace the CMD step of the Dockerfile with an ENTRYPOINT that uses `/bin/sh -c` to evaluates the shell commands and expand environment variables. ## [2.7] ### Added diff --git a/Dockerfile b/Dockerfile index 22c85a2..5b67d15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,18 +37,16 @@ ENV GUNICORN_THREADS=1 ENV GUNICORN_BIND="0.0.0.0:8000" ENV GUNICORN_TIMEOUT=400 -CMD [ \ - "gunicorn", \ - "--workers=${GUNICORN_WORKERS}", \ - "--worker-class=uvicorn.workers.UvicornWorker", \ - "--bind=${GUNICORN_BIND}", \ - "--threads=${GUNICORN_THREADS}", \ - "--timeout=${GUNICORN_TIMEOUT}", \ - "--proxy-protocol", \ - "--forwarded-allow-ips=10.0.2.100,127.0.0.1", \ - "--log-syslog", \ - "--access-logfile", "-", \ - "--error-logfile", "-", \ - "--log-level=debug", \ - "preClinVar.main:app" \ -] +ENTRYPOINT ["/bin/sh", "-c", "gunicorn \ + --workers=${GUNICORN_WORKERS} \ + --worker-class=uvicorn.workers.UvicornWorker \ + --bind=${GUNICORN_BIND} \ + --threads=${GUNICORN_THREADS} \ + --timeout=${GUNICORN_TIMEOUT} \ + --proxy-protocol \ + --forwarded-allow-ips=10.0.2.100,127.0.0.1 \ + --log-syslog \ + --access-logfile '-' \ + --error-logfile '-' \ + --log-level=debug \ + preClinVar.main:app"] From fa9203f4204c975af89cb278f33549f40f32abf3 Mon Sep 17 00:00:00 2001 From: Chiara Rasi Date: Thu, 21 Nov 2024 15:38:18 +0100 Subject: [PATCH 2/2] Update version in init file --- preClinVar/__version__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preClinVar/__version__.py b/preClinVar/__version__.py index 83bc79c..61979e5 100644 --- a/preClinVar/__version__.py +++ b/preClinVar/__version__.py @@ -1 +1 @@ -VERSION = "2.7" +VERSION = "2.7.1"