anchor.diff:   && make -j$(nproc) \
    && make install
   
  -# RUN wget -q https://github.com/tideways/php-xhprof-extension/archive/v${XHPROF_VERSION}.tar.gz \
  -#  && tar zxof v${XHPROF_VERSION}.tar.gz \
  -#  && cd ./php-xhprof-extension-${XHPROF_VERSION} \
  -#  && phpize \
  -#  && ./configure \
  -#  && make \
  -#  && make install
  -
  -# RUN wget -q https://github.com/maxmind/MaxMind-DB-Reader-php/archive/v${MAXMINDDB_VERSION}.tar.gz \
  -#  && tar zxof v${MAXMINDDB_VERSION}.tar.gz \
  -#  && cd MaxMind-DB-Reader-php-${MAXMINDDB_VERSION}/ext \
  -#  && phpize \
  -#  && ./configure \
  -#  && make \
  -#  && make install
  -
  -# RUN wget -q https://github.com/php/pecl-networking-gearman/archive/gearman-${GEARMAN_VERSION}.tar.gz \
  -#  && tar zxof gearman-${GEARMAN_VERSION}.tar.gz \
  -#  && cd pecl-networking-gearman-gearman-${GEARMAN_VERSION} \
  -#  && phpize \
  -#  && ./configure \
  -#  && make \
  -#  && make install
  -
  -RUN pecl channel-update pecl.php.net \
  - && pecl install \
  -    igbinary \
  -    msgpack
  -
  -RUN wget -q https://github.com/php-memcached-dev/php-memcached/archive/v${MEMCACHED_VERSION}.tar.gz \
  - && tar zxof v${MEMCACHED_VERSION}.tar.gz \
  - && cd php-memcached-${MEMCACHED_VERSION} \
  - && phpize \
  - && ./configure \
  -    --enable-memcached-igbinary \
  -    --enable-memcached-json \
  -    --enable-memcached-msgpack \
  -    --enable-memcached-protocol \
  -    --enable-memcached-sasl \
  -    --enable-memcached-session \
  - && make \
  - && make install
  -
  -RUN pecl install \
  -#    amqp \         # borked
  -    apcu \
  -    csv \
  -#    ds \           # borked
  -#    event \        # borked
  -#    gnupg \        # borked
  -    mongodb \
  -    pcov \
  -#    protobuf \     # borked
  -    rdkafka \
  -    redis \
  -#    ssh2-beta \    # borked
  -    uv-beta
  -#    xdebug \       # borked
  -#    yar            # borked
  -
   RUN rm -rf php-src-${PHP_VERSION} \
    && tar zxof ${PHP_VERSION}.tar.gz \
    && cd php-src-${PHP_VERSION} \
    && ./buildconf \
    && ./configure \
       EXTENSION_DIR="/usr/lib/php" \
  -
  + \
       --prefix=/usr \
       --sysconfdir=/etc/php/fpm \
       --with-config-file-path=/etc/php/fpm \
       --with-config-file-scan-dir=/etc/php/fpm/conf.d \
  -
  + \
       --enable-fpm \
       --disable-cli \
       --disable-cgi \
       --disable-phpdbg \
  -
  + \
       --enable-bcmath \
       --enable-calendar \
       --enable-exif \
  
positive.code: FROM 1maa/alpine:3.12 AS build
  
  ENV PHP_VERSION=master
  ENV GEARMAN_VERSION=2.0.6
  ENV MAXMINDDB_VERSION=1.6.0
  ENV MEMCACHED_VERSION=3.1.5
  ENV XHPROF_VERSION=5.0.2
  
  ENV CFLAGS="-Os -march=x86-64"
  ENV LDFLAGS="-s"
  
negative.code: 
  RUN apk add --no-cache \
      argon2-libs \
      gmp \
      libcurl \
      libffi \
      libgd \
      libsodium \
      libxml2 \
      libxslt \
      libzip \
      oniguruma \
      readline \
      sqlite-libs \
   && rm /etc/php/mods-available/*
  
  COPY etc/mods-available/opcache.ini /etc/php/mods-available/opcache.ini
  
  EXPOSE 9000
  
  