Add healthcheck to docker amd64

This commit is contained in:
Jannis Mattheis 2020-05-03 10:48:27 +02:00
parent 3f04d50088
commit 68cf35b4ac
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
FROM frolvlad/alpine-glibc:glibc-2.28 FROM frolvlad/alpine-glibc:glibc-2.28
WORKDIR /app WORKDIR /app
RUN apk add --no-cache ca-certificates tzdata RUN apk add --no-cache ca-certificates tzdata curl
ADD gotify-app /app/ ADD gotify-app /app/
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s CMD curl --fail http://localhost:80/health || exit 1
EXPOSE 80 EXPOSE 80
ENTRYPOINT ["./gotify-app"] ENTRYPOINT ["./gotify-app"]