diff --git a/docker/Dockerfile b/docker/Dockerfile index ff027b5..09cdbf6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,4 @@ FROM alpine:edge -RUN apk add --no-cache --update curl COPY build.sh /build.sh RUN /build.sh @@ -12,6 +11,7 @@ ENV PGID=1000 VOLUME /config VOLUME /media +HEALTHCHECK CMD wget -q http://localhost:8096/swagger -O /dev/null || exit 1 + COPY entrypoint.sh /entrypoint.sh -HEALTHCHECK --interval=15s --timeout=15s --start-period=20s CMD curl -f http://localhost:8096/emby/system/info/public?format=json || exit 1 ENTRYPOINT ["/entrypoint.sh"]