move healthcheck to dockerfile

This commit is contained in:
Maxi Quoß
2023-02-11 22:24:50 +01:00
parent cb168f2f47
commit b88f567d9f
2 changed files with 2 additions and 5 deletions

View File

@@ -16,4 +16,6 @@ RUN apk update &&\
rm -rf /var/cache/apk/*
WORKDIR /app
COPY --from=downloader /app/upsnap upsnap
HEALTHCHECK --interval=10s \
CMD curl -fs "http://localhost:8090/api/health " || exit 1
ENTRYPOINT ["./upsnap", "serve", "--http=0.0.0.0:8090"]