Skip to content

Commit

Permalink
Fix PHP modules installation path (#2998)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre authored Jul 5, 2024
1 parent 3413ac5 commit 0cbd01b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions share/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,23 @@ 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 \
&& phpize \
&& ./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 \
&& phpize \
&& ./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
Expand Down

0 comments on commit 0cbd01b

Please sign in to comment.