From c21575fc6634b3c192cadb6adf55993d87f85292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Standa=20Nov=C3=A1k?= Date: Thu, 14 Nov 2024 13:54:03 +0100 Subject: [PATCH] fix: Healthcheck of docker image (#2694) We use `wget` because `curl` is not installed on the image. Originally developed by @vexdev in #2676, thank you for that! Closes #2675. ![image](https://github.com/user-attachments/assets/bdd7c689-1747-48fa-a59f-104a3851e97e) Co-authored-by: StaNov --- docker/app/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/app/Dockerfile b/docker/app/Dockerfile index c835dc9875..74595a870d 100644 --- a/docker/app/Dockerfile +++ b/docker/app/Dockerfile @@ -28,4 +28,4 @@ CMD ["java", "-cp", "app:app/lib/*", "io.tolgee.Application"] # Health check to ensure the app is up and running HEALTHCHECK --interval=10s --timeout=3s --retries=20 \ - CMD curl -f http://127.0.0.1:$HEALTHCHECK_PORT/actuator/health || exit 1 + CMD wget --spider -q "http://127.0.0.1:$HEALTHCHECK_PORT/actuator/health" || exit 1