Skip to content

Instantly share code, notes, and snippets.

@jk
Created Apr 29, 2019
Embed
What would you like to do?
PHP 7.3 with zstd extension
FROM php:7.3
LABEL maintainer="Jens Kohl <jens.kohl@gmail.com>"
RUN apt-get update && \
apt-get install --no-install-recommends -y git-core && \
git clone --recursive --depth=1 https://github.com/kjdev/php-ext-zstd.git && \
cd php-ext-zstd && \
phpize && \
./configure && \
make -s && \
make -s install && \
echo "extension=zstd.so" > /usr/local/etc/php/conf.d/zstd.ini && \
cd .. && \
rm -rf php-ext-zstd && \
apt-get remove -y git-core && \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/* && \
php -m | grep zstd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment