fix(docker): healthcheck (#175)

fixes healthcheck for $ALLOWED_HOSTS longer than 2 domains
This commit is contained in:
JuniorJPDJ
2021-10-01 01:12:57 +02:00
committed by GitHub
parent 04120323a6
commit 53bc690435

View File

@@ -47,5 +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"'
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" ]