From 3af6fb47846247a9479d0cc41c766cf0750625fa Mon Sep 17 00:00:00 2001 From: Anastasios89 <116015202+Anastasios89@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:20:30 +0300 Subject: [PATCH 1/3] Remove PHPIZE_DEPS from image, optimize docker size --- 8.2/bullseye/fpm/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8.2/bullseye/fpm/Dockerfile b/8.2/bullseye/fpm/Dockerfile index 1a8300a3c..99fb20e0b 100644 --- a/8.2/bullseye/fpm/Dockerfile +++ b/8.2/bullseye/fpm/Dockerfile @@ -32,7 +32,6 @@ ENV PHPIZE_DEPS \ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends \ - $PHPIZE_DEPS \ ca-certificates \ curl \ xz-utils \ @@ -102,6 +101,7 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ + $PHPIZE_DEPS \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \ From 55e83fe27be74db12db370726e5323ce86f6f885 Mon Sep 17 00:00:00 2001 From: Anastasios89 <116015202+Anastasios89@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:27:15 +0300 Subject: [PATCH 2/3] Optimize Debian docker size --- Dockerfile-linux.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index f1b4f7a8d..786c63d69 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -64,7 +64,6 @@ RUN set -eux; \ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends \ - $PHPIZE_DEPS \ ca-certificates \ curl \ xz-utils \ @@ -259,6 +258,7 @@ RUN set -eux; \ else # debian packages if env.variant == "apache" then "apache2-dev" else empty end, + "$PHPIZE_DEPS", "libargon2-dev", "libcurl4-openssl-dev", "libreadline-dev", From c34734501bb6a56b6905c44a18f352f5650eb224 Mon Sep 17 00:00:00 2001 From: Anastasios89 <116015202+Anastasios89@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:33:00 +0300 Subject: [PATCH 3/3] Reverse dockerfile --- 8.2/bullseye/fpm/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8.2/bullseye/fpm/Dockerfile b/8.2/bullseye/fpm/Dockerfile index 99fb20e0b..1a8300a3c 100644 --- a/8.2/bullseye/fpm/Dockerfile +++ b/8.2/bullseye/fpm/Dockerfile @@ -32,6 +32,7 @@ ENV PHPIZE_DEPS \ RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends \ + $PHPIZE_DEPS \ ca-certificates \ curl \ xz-utils \ @@ -101,7 +102,6 @@ RUN set -eux; \ savedAptMark="$(apt-mark showmanual)"; \ apt-get update; \ apt-get install -y --no-install-recommends \ - $PHPIZE_DEPS \ libargon2-dev \ libcurl4-openssl-dev \ libonig-dev \