anchor.diff:  # Override monolog to send errors to stdout
   COPY ./docker/monolog.yaml /var/www/ilios/config/packages/prod
   
  -# add all the extra directories necessary for the application
  -RUN \
  -    mkdir -p \
  -    /var/www/ilios/var/cache \
  -    /var/www/ilios/var/log \
  -    # recursively change user/group ownership of the app root to 'www-data'
  -    && chown -R www-data:www-data /var/www/ilios \
  -    # give the www-data user a temporary shell in order to build the Ilios app
  -    && chsh -s /bin/bash www-data
  -
  -# change to the context of the 'www-data' user
  -USER www-data
  -
   WORKDIR /var/www/ilios
   
  -# as the 'www-data' user, build the app using composer and then remove it
   RUN \
       /usr/bin/composer install \
       --working-dir /var/www/ilios \
  
positive.code: 
  ENV \
  COMPOSER_HOME=/tmp \
  APP_ENV=prod \
  ILIOS_DATABASE_URL=mysql://ilios:ilios@db/ilios \
  ILIOS_DATABASE_MYSQL_VERSION=5.7 \
  
negative.code:     --no-interaction \
      --no-suggest \
      --classmap-authoritative \
      && /usr/bin/composer clear-cache
  
  RUN chown -R www-data:www-data /var/www/ilios
  
  # launch apache httpd as a foreground service
  CMD ["apache2-foreground"]
  