From 822ec936bfe820cc84b748217f35a6500b68257e Mon Sep 17 00:00:00 2001 From: Tudor Date: Tue, 24 Mar 2026 11:59:53 +0000 Subject: [PATCH] fix(integrator): install curl in Dockerfile; restore curl healthcheck Co-Authored-By: Claude Sonnet 4.6 --- docker-compose.yml | 2 +- integrator/Dockerfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index a5fca3b..de40bd5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -131,7 +131,7 @@ services: - schoolcompare-network restart: unless-stopped healthcheck: - test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8001/health')"] + test: ["CMD", "curl", "-f", "http://localhost:8001/health"] interval: 30s timeout: 10s retries: 3 diff --git a/integrator/Dockerfile b/integrator/Dockerfile index c21e55d..99f721e 100644 --- a/integrator/Dockerfile +++ b/integrator/Dockerfile @@ -4,6 +4,8 @@ WORKDIR /app # Install dependencies COPY requirements.txt . +RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/* + RUN pip install --no-cache-dir -r requirements.txt # Copy application code