From 8a416cd0016c97d3fe1604161427d1418f4414fd Mon Sep 17 00:00:00 2001 From: Renn F Date: Fri, 9 Oct 2026 15:19:08 +0200 Subject: [PATCH] fix(demo): install libcurl headers before building the curl extension --- examples/demo_app/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/demo_app/Dockerfile b/examples/demo_app/Dockerfile index d97c641..97f9dc3 100644 --- a/examples/demo_app/Dockerfile +++ b/examples/demo_app/Dockerfile @@ -9,8 +9,12 @@ RUN composer install --no-interaction --no-progress FROM php:8.3-cli -# The agent's transport speaks HTTPS to the ingestion API. -RUN docker-php-ext-install curl && \ +# The agent's transport speaks HTTPS to the ingestion API; the curl +# extension needs its libcurl dev headers to compile. +RUN apt-get update && \ + apt-get install -y --no-install-recommends libcurl4-openssl-dev && \ + docker-php-ext-install curl && \ + rm -rf /var/lib/apt/lists/* && \ useradd --create-home --uid 1000 guard COPY --from=build /app/vendor /app/vendor