Skip to content

Instantly share code, notes, and snippets.

@kamiazya
Last active February 26, 2020 08:59
Show Gist options
  • Save kamiazya/97c11b267667dbee0b439fddb2fc2046 to your computer and use it in GitHub Desktop.
Save kamiazya/97c11b267667dbee0b439fddb2fc2046 to your computer and use it in GitHub Desktop.
php:7.1.2-fpm-alpineにredis拡張をインストールする
FROM php:7.1.2-fpm-alpine
# php-redis
ENV PHPREDIS_VERSION 3.1.2
RUN docker-php-source extract \
&& curl -L -o /tmp/redis.tar.gz https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz \
&& tar xfz /tmp/redis.tar.gz \
&& rm -r /tmp/redis.tar.gz \
&& mv phpredis-$PHPREDIS_VERSION /usr/src/php/ext/redis \
&& docker-php-ext-install redis \
&& docker-php-source delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment