]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - Dockerfile.arm32v7
Add healthcheck to Dockerfile
[github/bastienwirtz/homer.git] / Dockerfile.arm32v7
index 3efb5aa109d825556e8c175abe94a163ba629ebb..1621abb74800d55809dd3d3cc80eea59563e3224 100644 (file)
@@ -35,6 +35,9 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/
 COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets
 COPY entrypoint.sh /entrypoint.sh
 
+HEALTHCHECK --interval=5s --timeout=5s --retries=3 \
+    CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1
+
 EXPOSE ${PORT}
 VOLUME /www/assets
 ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]