Fix: install curl in runtime image for Coolify healthcheck
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) <noreply@anthropic.com>
This commit is contained in:
+3
-4
@@ -19,11 +19,10 @@ ENV PYTHONUNBUFFERED=1 \
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Build deps for curl_cffi (needs libcurl-impersonate). curl_cffi vendors
|
# gcc — for any pure-Python wheels without prebuilt slim wheels.
|
||||||
# its own libs but a C toolchain is still useful for any pure-Python whls
|
# curl — Coolify runs its healthcheck via curl inside the container.
|
||||||
# without prebuilt wheels for slim.
|
|
||||||
RUN apt-get update \
|
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/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Python deps from pyproject.
|
# Install Python deps from pyproject.
|
||||||
|
|||||||
Reference in New Issue
Block a user