Skip to content

Commit d8ec584

Browse files
committed
health check
1 parent 84a9d5b commit d8ec584

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ RUN apk add --no-cache nginx && mkdir -p /run/nginx
1111
COPY --from=build /usr/share/nginx/html/ /usr/share/nginx/html/
1212
COPY --from=build /etc/nginx/nginx.conf /etc/nginx/nginx.conf
1313
EXPOSE 80
14-
CMD ["nginx", "-g", "daemon off;"]
14+
HEALTHCHECK --interval=1s --timeout=3s CMD wget -q -O - http://localhost:80 || exit 1
15+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)