From 97bbb852ec9bac4ab7f0de2b4900823a395e46e5 Mon Sep 17 00:00:00 2001 From: Chaim Date: Sat, 25 Apr 2026 13:00:57 +0000 Subject: [PATCH] Fix: install curl in runtime image for Coolify healthcheck MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The container ran fine (uvicorn started on :8000) but Coolify's healthcheck runs `curl` / `wget` inside the container, neither of which ships in python:3.13-slim. Container marked unhealthy → rolled back. Co-Authored-By: Claude Opus 4.7 (1M context) --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 81c7410..8b4281a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,11 +19,10 @@ ENV PYTHONUNBUFFERED=1 \ WORKDIR /app -# Build deps for curl_cffi (needs libcurl-impersonate). curl_cffi vendors -# its own libs but a C toolchain is still useful for any pure-Python whls -# without prebuilt wheels for slim. +# gcc — for any pure-Python wheels without prebuilt slim wheels. +# curl — Coolify runs its healthcheck via curl inside the container. RUN apt-get update \ - && apt-get install -y --no-install-recommends gcc \ + && apt-get install -y --no-install-recommends gcc curl \ && rm -rf /var/lib/apt/lists/* # Install Python deps from pyproject.