feat: add healthcheck to dockerfile

This commit is contained in:
Stavros
2025-03-26 16:37:41 +02:00
parent d82e959734
commit 46526b564e

View File

@@ -42,8 +42,13 @@ FROM alpine:3.21 AS runner
WORKDIR /tinyauth
RUN apk add --no-cache curl
COPY --from=builder /tinyauth/tinyauth ./
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=5s \
CMD curl -f http://localhost:3000/api/healthcheck || exit 1
ENTRYPOINT ["./tinyauth"]