Skip to content

Instantly share code, notes, and snippets.

@chadothompson
Created February 21, 2016 02:44
Show Gist options
  • Save chadothompson/194ab0d1a52829e9b5c7 to your computer and use it in GitHub Desktop.
Save chadothompson/194ab0d1a52829e9b5c7 to your computer and use it in GitHub Desktop.
Building a PHP 7 Docker Container With Memcachd Support
FROM php:7.0-fpm
RUN apt-get update && \
apt-get install -y git \
zlib1g-dev \
libmemcached-dev
RUN git clone https://github.com/php-memcached-dev/php-memcached /usr/src/php/ext/memcached && \
cd /usr/src/php/ext/memcached && git checkout -b php7 origin/php7 && \
docker-php-ext-configure memcached && \
docker-php-ext-install memcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment