Skip to content

Commit

Permalink
Merge pull request #143 from Clinical-Genomics/fix_dockerfile_cmd
Browse files Browse the repository at this point in the history
Fix dockerfile cmd
  • Loading branch information
northwestwitch authored Nov 21, 2024
2 parents c822205 + fa9203f commit 506e5db
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
28 changes: 13 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion preClinVar/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "2.7"
VERSION = "2.7.1"

0 comments on commit 506e5db

Please sign in to comment.