anchor.diff: -FROM alpine:edge
  +FROM alpine:3.4
   MAINTAINER Stephen Packer <steve@stevepacker.com>
  -
  -LABEL caddy_version="0.8.3" \
  -      architecture="amd64"
   
   EXPOSE 80 443
   
  +ENTRYPOINT ["/sbin/tini", "--"]
  +
  +ENV PHP_BEFORE= \
  +    PHP_AFTER= \
  +    PHP_COMPOSER_FLAGS=
  +
   # install php and other libraries
  -RUN apk add --update --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ openssl git tar curl \
  +RUN echo "http://dl-3.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
  +    && apk add --update openssl git tar curl tini \
           php7-ctype \
           php7-curl \
           php7-dom \
  
positive.code:         php7-mcrypt \
          php7-mbstring \
          php7-openssl \
  	php7-pcntl \
          php7-pdo_mysql \
          php7-pdo_sqlite \
          php7-phar \
  
negative.code:     && adduser -SDHu 1000 php \
      && sed -i "s/user *=.*$/user = php/" /etc/php7/php-fpm.conf \
      && mkdir -p /srv \
      && printf "<?php phpinfo(); ?>" > /srv/index.php \
      # caddy
      && wget -O - "http://caddyserver.com/download/build?os=linux&arch=amd64&features=git,ipfilter,jwt,realip" | tar xvz caddy \
      && mv /caddy /usr/local/bin/caddy
  
  COPY Caddyfile /etc/Caddyfile
  COPY php-fpm-wrapper.sh /usr/local/bin/php-fpm-wrapper
  
  VOLUME ["/root/.caddy", "/srv"]
  
  CMD ["/usr/local/bin/caddy", "-conf=/etc/Caddyfile", "-agree"]
  