Created
September 16, 2016 00:31
-
-
Save pcambra/2ce7914e8e7099ee4c30b681753fe8b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# While the issues with php7-memcached are solved... | |
RUN echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ | |
echo "http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ | |
apk update && \ | |
apk --update add libmemcached-dev \ | |
autoconf \ | |
build-base \ | |
libtool \ | |
php7-pear \ | |
php7-dev \ | |
alpine-sdk \ | |
zlib-dev \ | |
&& ln -s /usr/bin/php-config7 /usr/bin/php-config \ | |
&& ln -s /usr/bin/phpize7 /usr/bin/phpize \ | |
&& cd ~ \ | |
&& git clone https://github.com/php-memcached-dev/php-memcached.git \ | |
&& cd php-memcached \ | |
&& git checkout php7 \ | |
&& phpize\ | |
&& ./configure --disable-memcached-sasl \ | |
&& make \ | |
&& make install \ | |
&& echo "extension=memcached.so" > /etc/php7/conf.d/20-memcached.ini \ | |
&& apk del --purge \ | |
autoconf \ | |
build-base \ | |
libtool \ | |
php7-pear \ | |
php7-dev \ | |
alpine-sdk \ | |
zlib-dev \ | |
&& rm -rf /var/cache/apk/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment