From aebdab79b60783d6901f6e6c1c7e4af9c6c7083d Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Wed, 13 Sep 2023 16:46:46 +0300 Subject: [PATCH] feat: Container healthcheck --- Containerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Containerfile b/Containerfile index 27c7719..dac6db2 100644 --- a/Containerfile +++ b/Containerfile @@ -17,4 +17,7 @@ COPY --from=builder /build/viddl /app/viddl RUN chmod +x /app/viddl +HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3\ + CMD curl -f http://localhost:8080 || exit 1 + CMD [ "/app/viddl" ]