anchor.diff:  ARG base_version=3.9
   ARG version=7.3
   ARG major=7
  +ARG composer_version=1.8.6
  +ARG blackfire_version=1.25.0
   
   FROM minidocks/base:3.5 AS v3.5
   
  
positive.code:         xsl \
          zip \
      ; do modules="$modules php${major}-$module"; done \
      && if [ "$version" = "5.6" ]; then modules="$modules php5-xdebug@community35"; fi \
      && if [ "$version" != "5.6" ]; then modules="$modules php7-xdebug php7-mysqlnd php7-session"; fi \
      && if echo "5.6 7.0" | grep -qv "$version"; then modules="$modules php7-redis"; fi \
      && if echo "7.1 7.2" | grep -q "$version"; then modules="$modules php7-fileinfo php7-simplexml php7-xmlwriter"; fi \
      && if [ "$version" != "7.3" ]; then modules="$modules php7-mcrypt"; fi \
      && apk --update add $modules \
      && if [ ! -f /usr/bin/php-fpm ]; then ln -s "/usr/sbin/php-fpm${major}" /usr/bin/php-fpm; fi \
      && clean
  
  
negative.code:     PHP_XDEBUG__REMOTE_HOST=172.17.0.1 \
      PHP_XDEBUG__REMOTE_PORT=9000 \
      PHP_XDEBUG__REMOTE_CONNECT_BACK=0 \
      PHP_XDEBUG__IDEKEY=PHPSTORM
  
  ARG blackfire_version
  
  RUN wget -O "/usr/lib/php${major}/modules/blackfire.so" https://packages.blackfire.io/binaries/blackfire-php/${blackfire_version}/blackfire-php-alpine_amd64-php-${version/./}.so \
      && mkdir /var/run/blackfire \
      && chmod a+x /var/run/blackfire/ "/usr/lib/php${major}/modules/blackfire.so" \
      && echo -e "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707" > "${PHP_INI_DIR}/conf.d/blackfire.ini"
  