Skip to content

Commit

Permalink
docker: add health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Oct 10, 2024
1 parent bda4542 commit b7b7d10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ RUN <<EOT
npm run build:min
EOT

HEALTHCHECK CMD [ "test", "-e", "root/assets/assets.json" ]

################### Web Server
# hadolint ignore=DL3007
FROM metacpan/metacpan-base:latest AS server
Expand Down Expand Up @@ -62,6 +64,8 @@ CMD [ \

EXPOSE 80

HEALTHCHECK --start-period=3s CMD [ "curl", "--fail", "http://localhost/healthcheck" ]

################### Development Server
FROM server AS develop

Expand Down

0 comments on commit b7b7d10

Please sign in to comment.