Skip to content

Commit 07846ab

Browse files
Merge pull request #441 from Quetzacoalt91/handle-debian-trixie
Stop installing a lib deleted on Debian Trixie
2 parents fe0ab84 + 74a5ff9 commit 07846ab

File tree

15 files changed

+90
-45
lines changed

15 files changed

+90
-45
lines changed

base/Dockerfile.model

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include
4447
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath
4548

base/images/7.3-apache/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
# PHP < 7.4 have an old syntax to install GD. See https://github.com/docker-library/php/issues/912
4447
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include
4548
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath

base/images/7.3-fpm/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
# PHP < 7.4 have an old syntax to install GD. See https://github.com/docker-library/php/issues/912
4447
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include
4548
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath

base/images/7.4-apache/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include
4447
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath
4548

base/images/7.4-fpm/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include
4447
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath
4548

base/images/8.0-apache/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include
4447
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath
4548

base/images/8.0-fpm/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include
4447
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath
4548

base/images/8.1-apache/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include
4447
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath
4548

base/images/8.1-fpm/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include
4447
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath
4548

base/images/8.2-apache/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ PS_FOLDER_INSTALL=install
2727
RUN apt-get update \
2828
&& apt-get install -y libmcrypt-dev \
2929
libjpeg62-turbo-dev \
30-
libpcre3-dev \
3130
libpng-dev \
3231
libwebp-dev \
3332
libfreetype6-dev \
@@ -37,9 +36,13 @@ RUN apt-get update \
3736
default-mysql-client \
3837
wget \
3938
unzip \
40-
libonig-dev
39+
libonig-dev \
40+
&& rm -rf /var/lib/apt/lists/*
41+
42+
RUN if [[ "$(cat /etc/os-release)" == *"bookworm"* ]]; then apt-get update \
43+
&& apt-get install -y libpcre3-dev \
44+
&& rm -rf /var/lib/apt/lists/*; fi
4145

42-
RUN rm -rf /var/lib/apt/lists/*
4346
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include
4447
RUN docker-php-ext-install iconv intl pdo_mysql mbstring soap gd zip bcmath
4548

0 commit comments

Comments
 (0)