Skip to content

Commit

Permalink
Add HEALTHCHECK command for the container
Browse files Browse the repository at this point in the history
this is the command for the alpine image according to
https://stackoverflow.com/a/62178148
  • Loading branch information
atodorov committed Jan 8, 2024
1 parent 55afb98 commit 1070e32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN git config --global url."https://github.com/".insteadOf [email protected]: \

# production environment
FROM nginx:1.25.3-alpine
HEALTHCHECK CMD wget -O /dev/null http://localhost || exit 1
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit 1070e32

Please sign in to comment.