diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2021-09-25 01:19:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-25 01:19:52 -0700 |
commit | 6173d7df609bc3ab071d5d9e34ce1eb1cb05d99e (patch) | |
tree | 7761138b01c20c5d150753e33864aa87a30b09d2 /Dockerfile | |
parent | b2a31c0701e1938fae407cd3afc3e1b0dc46eaa9 (diff) | |
parent | 6dd8342bf08188622116e242122bb25b42085d93 (diff) | |
download | homer-6173d7df609bc3ab071d5d9e34ce1eb1cb05d99e.tar.gz homer-6173d7df609bc3ab071d5d9e34ce1eb1cb05d99e.tar.zst homer-6173d7df609bc3ab071d5d9e34ce1eb1cb05d99e.zip |
Merge pull request #260 from vosdev/main
Add healthcheck to Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -25,6 +25,9 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | |||
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets |
26 | COPY entrypoint.sh /entrypoint.sh | 26 | COPY entrypoint.sh /entrypoint.sh |
27 | 27 | ||
28 | HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ | ||
29 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | ||
30 | |||
28 | EXPOSE ${PORT} | 31 | EXPOSE ${PORT} |
29 | VOLUME /www/assets | 32 | VOLUME /www/assets |
30 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 33 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] |