Skip to content

Commit 13f5aff

Browse files
committed
Stop installing a lib deleted on Debian Trixie
1 parent fe0ab84 commit 13f5aff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
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

0 commit comments

Comments
 (0)