pcambra
9/16/2016 - 12:31 AM

gistfile1.txt

# 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/*