aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2021-09-25 01:19:52 -0700
committerGitHub <noreply@github.com>2021-09-25 01:19:52 -0700
commit6173d7df609bc3ab071d5d9e34ce1eb1cb05d99e (patch)
tree7761138b01c20c5d150753e33864aa87a30b09d2
parentb2a31c0701e1938fae407cd3afc3e1b0dc46eaa9 (diff)
parent6dd8342bf08188622116e242122bb25b42085d93 (diff)
downloadhomer-6173d7df609bc3ab071d5d9e34ce1eb1cb05d99e.tar.gz
homer-6173d7df609bc3ab071d5d9e34ce1eb1cb05d99e.tar.zst
homer-6173d7df609bc3ab071d5d9e34ce1eb1cb05d99e.zip
Merge pull request #260 from vosdev/main
Add healthcheck to Dockerfile
-rw-r--r--Dockerfile3
-rw-r--r--Dockerfile.arm32v73
-rw-r--r--Dockerfile.arm64v83
3 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 19d01f8..d7179fc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,6 +25,9 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
25COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets 25COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
26COPY entrypoint.sh /entrypoint.sh 26COPY entrypoint.sh /entrypoint.sh
27 27
28HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
29 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
30
28EXPOSE ${PORT} 31EXPOSE ${PORT}
29VOLUME /www/assets 32VOLUME /www/assets
30ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] 33ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7
index 3efb5aa..1621abb 100644
--- a/Dockerfile.arm32v7
+++ b/Dockerfile.arm32v7
@@ -35,6 +35,9 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets 35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
36COPY entrypoint.sh /entrypoint.sh 36COPY entrypoint.sh /entrypoint.sh
37 37
38HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
39 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
40
38EXPOSE ${PORT} 41EXPOSE ${PORT}
39VOLUME /www/assets 42VOLUME /www/assets
40ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] 43ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8
index e6d0a51..fe35ede 100644
--- a/Dockerfile.arm64v8
+++ b/Dockerfile.arm64v8
@@ -35,6 +35,9 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets 35COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
36COPY entrypoint.sh /entrypoint.sh 36COPY entrypoint.sh /entrypoint.sh
37 37
38HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
39 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
40
38EXPOSE ${PORT} 41EXPOSE ${PORT}
39VOLUME /www/assets 42VOLUME /www/assets
40ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] 43ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]