Skip to content
Snippets Groups Projects
Commit 695ee9a9 authored by Andrey Postnikov's avatar Andrey Postnikov
Browse files

php/8.2-cli: clean-up outdated options #3387737

- mysql, mcrypt and xmlrpc no longer a part of PHP core
- disable debug-symbols generation and phpdbg executable
- strip binaries
- remove node&yarn
parent b268efff
No related branches found
No related tags found
No related merge requests found
Pipeline #21518 passed
......@@ -54,7 +54,6 @@ RUN set -xe; \
libonig-dev \
libkrb5-dev \
zlib1g-dev \
libmcrypt-dev \
libpng-dev \
libwebp-dev \
libavif-dev/bullseye-backports \
......@@ -94,7 +93,6 @@ RUN set -xe; \
--with-zlib \
--with-kerberos \
--with-openssl \
--with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-pdo-sqlite \
......@@ -103,10 +101,8 @@ RUN set -xe; \
--with-freetype \
--with-zlib-dir \
--with-jpeg \
--with-mcrypt \
--with-xsl \
--with-tidy \
--with-xmlrpc \
--with-gettext=shared \
--enable-gd \
--with-webp \
......@@ -127,9 +123,15 @@ RUN set -xe; \
--enable-opcache \
--with-apxs2 \
--disable-cgi \
--disable-phpdbg \
--disable-debug \
&& make -j "$(nproc)" \
&& make install \
&& make clean \
&& strip \
/usr/lib/apache2/modules/libphp.so \
/usr/local/bin/php \
$(php -r 'echo ini_get("extension_dir");')/*.so \
&& rm -fr "$buildDir"
# install pecl extensions for apcu, xdebug, and yaml
......@@ -146,6 +148,10 @@ ENV DRUPALCI=TRUE TERM=xterm
COPY --from=builder /usr/local /usr/local
COPY --from=builder /usr/lib/apache2/modules/libphp.so /usr/lib/apache2/modules/libphp.so
COPY --from=builder /etc/apache2/mods-enabled/php.load /etc/apache2/mods-enabled/php.load
COPY --from=builder /etc/apache2/mods-available/php.load /etc/apache2/mods-available/php.load
COPY ./conf/php/php.ini /usr/local/etc/php/php.ini
COPY ./conf/php/php-cli.ini /usr/local/etc/php/php-cli.ini
......@@ -159,7 +165,6 @@ RUN set -xe; \
libkrb5-3 \
libpng16-16 \
zlib1g \
libmcrypt4 \
libwebp6 \
libavif13/bullseye-backports \
libaom3/bullseye-backports \
......@@ -190,13 +195,4 @@ RUN curl -o /tmp/composer-setup.php https://getcomposer.org/installer \
&& chmod +x /usr/local/bin/drush \
&& /usr/local/bin/drush --version
# Install node, yarn
RUN curl -sS -o /etc/apt/trusted.gpg.d/nodesource.gpg.asc https://deb.nodesource.com/gpgkey/nodesource.gpg.key \
&& echo "deb https://deb.nodesource.com/node_18.x bullseye main" | tee /etc/apt/sources.list.d/nodesource.list \
&& curl -sS -o /etc/apt/trusted.gpg.d/yarn.gpg.asc https://dl.yarnpkg.com/debian/pubkey.gpg \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install -y nodejs yarn \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment