Skip to content

Commit 7c58881

Browse files
Add fallback to PORT in healthcheck (#249)
1 parent 2d7bbca commit 7c58881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ RUN python manage.py collectstatic --noinput && \
4949
# Launch
5050
USER appuser
5151
EXPOSE 8080
52-
HEALTHCHECK CMD bash -c 'wget -o /dev/null -O /dev/null --header "Host: ${ALLOWED_HOSTS%%,*}" "http://127.0.0.1:$PORT/healthz/?format=json"'
52+
HEALTHCHECK CMD bash -c 'wget -o /dev/null -O /dev/null --header "Host: ${ALLOWED_HOSTS%%,*}" "http://127.0.0.1:${PORT:-8080}/healthz/?format=json"'
5353
CMD [ "./entrypoint.sh" ]

0 commit comments

Comments
 (0)