X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Dockerfile;h=d7179fc59e3a9b5864b0577f1fff57be6e6dc139;hb=451b1ac62450fb2c4f8e2382bcf422bb7a434700;hp=03751124aebfe2a0df8a084c1ea6681c4bbb9b33;hpb=b102c9b2b3aaa4d66bda8d932ba2d6bd4575c044;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/Dockerfile b/Dockerfile index 0375112..d7179fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,10 @@ RUN addgroup -S ${GROUP} -g ${GID} && adduser -D -S -u ${UID} ${USER} ${GROUP} & COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets -COPY --chown=${USER}:${GROUP} entrypoint.sh /entrypoint.sh +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