Skip to content

Commit

Permalink
feat(docker): healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorJPDJ committed Sep 11, 2021
1 parent 03ced00 commit f8f75b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ RUN python manage.py collectstatic --noinput && \
# Launch
USER appuser
EXPOSE 8080
HEALTHCHECK CMD bash -c 'wget -o /dev/null -O /dev/null --header "Host: ${ALLOWED_HOSTS%,*}" "http://127.0.0.1:$PORT/healthz/?format=json"'
CMD [ "./entrypoint.sh" ]

0 comments on commit f8f75b9

Please sign in to comment.