Commit fa447eac authored by nimrod's avatar nimrod
Browse files

nginx: Update and address healthcheck issue.

Update the base image to 1.29.4. Address a healthcheck issue on hosts
with IPv6 addresses (only use IPv4).
parent 5f1c8e2c
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
FROM docker.io/nginx:1.27.2-alpine-slim
FROM docker.io/nginx:1.29.4-alpine-slim
# hadolint ignore=DL3018
RUN rm -rf /etc/nginx/conf.d/* && \
    chmod 777 /run && \
@@ -23,4 +23,4 @@ COPY --chown=root:root conf.d/ /etc/nginx/conf.d/
COPY --chown=root:root snippets/ /etc/nginx/snippets/
USER nginx
RUN nginx -t
HEALTHCHECK CMD curl --fail --verbose --user-agent 'Docker health check' --header "Host: status" http://localhost/ || exit 1
HEALTHCHECK CMD curl --ipv4 --fail --verbose --user-agent 'Docker health check' --header "Host: status" http://localhost/ || exit 1