From 3c52036f7edb781ee174efffaeae4faeb6bb635f Mon Sep 17 00:00:00 2001 From: asepharyana Date: Fri, 24 Jul 2026 18:52:38 +0700 Subject: [PATCH] fix(infra): replace curl healthcheck with wget, install wget in runtime Co-Authored-By: Kilo --- infra/compose/tools.yml | 2 +- infra/docker/tools.Dockerfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/compose/tools.yml b/infra/compose/tools.yml index 68f55b2..dc81c2f 100644 --- a/infra/compose/tools.yml +++ b/infra/compose/tools.yml @@ -25,7 +25,7 @@ services: ports: - "3002:3001" healthcheck: - test: ['CMD-SHELL', 'curl -so /dev/null --connect-timeout 5 http://localhost:3001/health || test $? -eq 22'] + test: ['CMD-SHELL', 'wget -q -O /dev/null http://localhost:3001/health || exit 1'] interval: 30s timeout: 10s retries: 5 diff --git a/infra/docker/tools.Dockerfile b/infra/docker/tools.Dockerfile index 0921684..7587188 100644 --- a/infra/docker/tools.Dockerfile +++ b/infra/docker/tools.Dockerfile @@ -54,6 +54,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ tesseract-ocr-osd \ ca-certificates \ fonts-dejavu-core \ + wget \ && rm -rf /var/lib/apt/lists/* WORKDIR /app