aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2021-10-06 22:55:53 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2021-10-06 22:55:53 +0200
commit220c60cba04e86e782e9610aa8ef0d77e221072c (patch)
tree4c51cd7efbf469f57dfc9b74218c68dbef4d0041
parent2ca4faad9cb336ac8904bbc775fdcc2a12731b90 (diff)
downloadhomer-220c60cba04e86e782e9610aa8ef0d77e221072c.tar.gz
homer-220c60cba04e86e782e9610aa8ef0d77e221072c.tar.zst
homer-220c60cba04e86e782e9610aa8ef0d77e221072c.zip
Reduce docker healthcheck frequency
-rw-r--r--Dockerfile2
-rw-r--r--Dockerfile.arm32v72
-rw-r--r--Dockerfile.arm64v82
3 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index d7179fc..e31d97d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,7 +25,7 @@ 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 \ 28HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
29 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 29 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
30 30
31EXPOSE ${PORT} 31EXPOSE ${PORT}
diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7
index 1621abb..95a2db1 100644
--- a/Dockerfile.arm32v7
+++ b/Dockerfile.arm32v7
@@ -35,7 +35,7 @@ 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 \ 38HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
39 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 39 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
40 40
41EXPOSE ${PORT} 41EXPOSE ${PORT}
diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8
index fe35ede..cd15e4a 100644
--- a/Dockerfile.arm64v8
+++ b/Dockerfile.arm64v8
@@ -35,7 +35,7 @@ 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 \ 38HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
39 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 39 CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
40 40
41EXPOSE ${PORT} 41EXPOSE ${PORT}