From c0a4cd2b4516c3ab690306b3b0a3b72eaeb657dc Mon Sep 17 00:00:00 2001 From: idevakk <219866223+idevakk@users.noreply.github.com> Date: Mon, 9 Mar 2026 23:44:12 +0530 Subject: [PATCH] fix: remove broken apk del PHPIZE_DEPS and unnecessary build deps from Dockerfile --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9618f70..60a346f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,11 +30,9 @@ COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr RUN apk add --no-cache \ nginx \ supervisor \ - git \ - linux-headers \ - openssl-dev + git -# Install PHP extensions +# Install PHP extensions (handles all build deps automatically) RUN install-php-extensions \ pdo_mysql \ gd \ @@ -62,10 +60,6 @@ COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh # Make entrypoint executable RUN chmod +x /usr/local/bin/entrypoint.sh -# Cleanup -RUN apk del $PHPIZE_DEPS \ - && rm -rf /var/cache/apk/* - EXPOSE 80 ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]