Skip to content

Commit

Permalink
Docker health check. Closes #301.
Browse files Browse the repository at this point in the history
  • Loading branch information
impworks committed Dec 7, 2024
1 parent 7f8fc70 commit 187c5c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ RUN --mount=type=cache,id=apk-$TARGETARCH$TARGETVARIANT,sharing=locked,target=/v
libintl \
icu \
icu-data-full \
curl \
&& apk add libgdiplus --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing/

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

HEALTHCHECK --interval=5s --timeout=10s --retries=5 CMD curl --silent --fail http://localhost/ || exit 1

EXPOSE 80

ENTRYPOINT ["/app/Bonsai"]

0 comments on commit 187c5c6

Please sign in to comment.