Skip to content

Commit

Permalink
Change URL and use wget for HEALTHCHECK
Browse files Browse the repository at this point in the history
/swagger is available both before and after the initial startup wizard.
  • Loading branch information
nvllsvm committed Jun 12, 2018
1 parent e18c097 commit 270704d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM alpine:edge
RUN apk add --no-cache --update curl

COPY build.sh /build.sh
RUN /build.sh
Expand All @@ -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"]

0 comments on commit 270704d

Please sign in to comment.