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"]