We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a9d5b commit d8ec584Copy full SHA for d8ec584
Dockerfile
@@ -11,4 +11,5 @@ RUN apk add --no-cache nginx && mkdir -p /run/nginx
11
COPY --from=build /usr/share/nginx/html/ /usr/share/nginx/html/
12
COPY --from=build /etc/nginx/nginx.conf /etc/nginx/nginx.conf
13
EXPOSE 80
14
-CMD ["nginx", "-g", "daemon off;"]
+HEALTHCHECK --interval=1s --timeout=3s CMD wget -q -O - http://localhost:80 || exit 1
15
+CMD ["nginx", "-g", "daemon off;"]
0 commit comments