Skip to content

Commit b7b7d10

Browse files
committed
docker: add health checks
1 parent bda4542 commit b7b7d10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN <<EOT
2222
npm run build:min
2323
EOT
2424

25+
HEALTHCHECK CMD [ "test", "-e", "root/assets/assets.json" ]
26+
2527
################### Web Server
2628
# hadolint ignore=DL3007
2729
FROM metacpan/metacpan-base:latest AS server
@@ -62,6 +64,8 @@ CMD [ \
6264

6365
EXPOSE 80
6466

67+
HEALTHCHECK --start-period=3s CMD [ "curl", "--fail", "http://localhost/healthcheck" ]
68+
6569
################### Development Server
6670
FROM server AS develop
6771

0 commit comments

Comments
 (0)