Skip to content

Commit

Permalink
Simplified healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
nikorev committed Nov 21, 2023
1 parent 7b26b61 commit 90cbdd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ RUN sed -i \
COPY --from=build /srv/build/prod /usr/share/nginx/html
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD [ $(curl -I -s http://127.0.0.1:8000 | head -n 1 | cut -d' ' -f2 | head -n 1) -eq 200 ] || [ $(curl -I -s -6 http://[::1]:8000 | head -n 1 | cut -d' ' -f2 | head -n 1) -eq 200 ] || exit 1
CMD curl -sf -o /dev/null http://localhost:8000 || exit 1
EXPOSE 8000

0 comments on commit 90cbdd9

Please sign in to comment.