Skip to content

Commit

Permalink
add healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Glutamat42 authored Jan 23, 2025
1 parent 73f3fed commit 13e8fad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ COPY .nginx.conf /etc/nginx/conf.d/default.conf
COPY build /usr/share/nginx/html

COPY create-env-config.sh /docker-entrypoint.d/

HEALTHCHECK --interval=30s --timeout=30s --start-period=30s --retries=3 CMD curl -f http://localhost || exit 1
2 changes: 2 additions & 0 deletions Dockerfile-twostage
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ FROM nginx:stable-alpine
COPY .nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /src/build /usr/share/nginx/html
COPY --from=build /src/create-env-config.sh /docker-entrypoint.d/

HEALTHCHECK --interval=30s --timeout=30s --start-period=30s --retries=3 CMD curl -f http://localhost || exit 1

0 comments on commit 13e8fad

Please sign in to comment.