Skip to content

Commit 187c5c6

Browse files
committed
Docker health check. Closes #301.
1 parent 7f8fc70 commit 187c5c6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ RUN --mount=type=cache,id=apk-$TARGETARCH$TARGETVARIANT,sharing=locked,target=/v
4242
libintl \
4343
icu \
4444
icu-data-full \
45+
curl \
4546
&& apk add libgdiplus --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing/
4647

4748
WORKDIR /app
@@ -56,6 +57,8 @@ RUN ln -s /usr/bin/ffmpeg /app/External/ffmpeg/ffmpeg && \
5657
ENV ASPNETCORE_ENVIRONMENT=Production
5758
ENV BuildCommit=$BUILD_COMMIT
5859

60+
HEALTHCHECK --interval=5s --timeout=10s --retries=5 CMD curl --silent --fail http://localhost/ || exit 1
61+
5962
EXPOSE 80
6063

6164
ENTRYPOINT ["/app/Bonsai"]

0 commit comments

Comments
 (0)