From 0cbd01b63c6b81048ec5c39e5ad6d98dfd48b376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Fri, 5 Jul 2024 11:41:27 +0200 Subject: [PATCH] Fix PHP modules installation path (#2998) --- share/docker/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/docker/Dockerfile b/share/docker/Dockerfile index db733760ad0..30180b72ba0 100644 --- a/share/docker/Dockerfile +++ b/share/docker/Dockerfile @@ -133,6 +133,7 @@ RUN curl -sSL https://deb.nodesource.com/setup_14.x \ # Install PHP-snappy and PHP-zstd ENV PHP7_VERSION=7.4 +RUN mkdir -p "/etc/php/${PHP7_VERSION}/cli/conf.d" RUN mkdir tmp && cd tmp \ && git clone --recursive --depth=1 https://github.com/kjdev/php-ext-zstd.git \ && cd php-ext-zstd \ @@ -140,7 +141,7 @@ RUN mkdir tmp && cd tmp \ && ./configure \ && make \ && make install \ - && echo "extension=zstd.so" > /etc/php/${PHP7_VERSION}/cli/conf.d/10-zstd.ini \ + && echo "extension=zstd.so" > "/etc/php/${PHP7_VERSION}/cli/conf.d/10-zstd.ini" \ && cd .. && rm -rf php-ext-zstd \ && git clone --recursive --depth=1 https://github.com/kjdev/php-ext-snappy.git \ && cd php-ext-snappy \ @@ -148,7 +149,7 @@ RUN mkdir tmp && cd tmp \ && ./configure \ && make \ && make install \ - && echo "extension=snappy.so" > /etc/php/${PHP7_VERSION}/cli/conf.d/10-snappy.ini \ + && echo "extension=snappy.so" > "/etc/php/${PHP7_VERSION}/cli/conf.d/10-snappy.ini" \ && cd .. && rm -rf php-ext-snappy \ && php -m \ && apt-get -qqy clean