Skip to content

Instantly share code, notes, and snippets.

@fenying
Created September 24, 2019 03:44
Show Gist options
  • Save fenying/acae47e42a0ab79e6310598699d20da0 to your computer and use it in GitHub Desktop.
Save fenying/acae47e42a0ab79e6310598699d20da0 to your computer and use it in GitHub Desktop.
Install PHP-FPM by docker with extensions for MySQL and Redis
FROM php:fpm
RUN pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis \
&& docker-php-ext-install mysqli pdo pdo_mysql
CMD ["php-fpm"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment