Skip to content

Commit

Permalink
Update to PHP8 (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbonofre authored Jul 5, 2024
1 parent 0cbd01b commit 06c8b5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions share/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -132,24 +132,24 @@ RUN curl -sSL https://deb.nodesource.com/setup_14.x \
&& npm cache clean --force

# Install PHP-snappy and PHP-zstd
ENV PHP7_VERSION=7.4
RUN mkdir -p "/etc/php/${PHP7_VERSION}/cli/conf.d"
ENV PHP8_VERSION=8.1
RUN mkdir -p "/etc/php/${PHP8_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/${PHP8_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/${PHP8_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 06c8b5d

Please sign in to comment.