diff options
-rw-r--r-- | Dockerfile | 3 | ||||
-rw-r--r-- | Dockerfile.arm32v7 | 3 | ||||
-rw-r--r-- | Dockerfile.arm64v8 | 3 |
3 files changed, 9 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"] |
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/ | |||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets |
36 | COPY entrypoint.sh /entrypoint.sh | 36 | COPY entrypoint.sh /entrypoint.sh |
37 | 37 | ||
38 | HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ | ||
39 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | ||
40 | |||
38 | EXPOSE ${PORT} | 41 | EXPOSE ${PORT} |
39 | VOLUME /www/assets | 42 | VOLUME /www/assets |
40 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 43 | ENTRYPOINT ["/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/ | |||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets |
36 | COPY entrypoint.sh /entrypoint.sh | 36 | COPY entrypoint.sh /entrypoint.sh |
37 | 37 | ||
38 | HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ | ||
39 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | ||
40 | |||
38 | EXPOSE ${PORT} | 41 | EXPOSE ${PORT} |
39 | VOLUME /www/assets | 42 | VOLUME /www/assets |
40 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] | 43 | ENTRYPOINT ["/bin/sh", "/entrypoint.sh"] |