anchor.diff:  # Store the git commit hash of the repo in the final image
   COPY .git/HEAD .git/HEAD
   COPY .git/refs .git/refs
  -RUN REF="ref: HEAD" && \
  -	while [ -n "$(echo $REF | grep ref:)" ]; do REF=$(cat ".git/$(echo $REF | awk '{print $2}')"); done && \
  -	echo $REF > git-commit
  +RUN REF="ref: HEAD" \
  +	&& while [ -n "$(echo $REF | grep ref:)" ]; do REF=$(cat ".git/$(echo $REF | awk '{print $2}')"); done \
  +	&& echo $REF > git-commit
  
positive.code: #---------------------------
  
  FROM php:7.4.14-apache
  RUN apt-get update \
  	&& apt-get install -y zip unzip \
  	&& rm -rf /var/lib/apt/lists/* \
  	&& docker-php-ext-install mysqli opcache
  
  # Set the baseline php.ini version based on the value of PHP_DEBUG
  ARG PHP_DEBUG=0
  RUN MODE=$([ "$PHP_DEBUG" = "1" ] && echo "development" || echo "production") && \
  	echo "Using $MODE php.ini" && \
  	mv "$PHP_INI_DIR/php.ini-$MODE" "$PHP_INI_DIR/php.ini"
  
  # Install xdebug (use /tmp/xdebug for profiler output)
  RUN if [ "$PHP_DEBUG" = "1" ]; \
  	then \
  		pecl install xdebug-3.0.2 && \
  		docker-php-ext-enable xdebug && \
  		echo "xdebug.output_dir = /tmp/xdebug" > "$PHP_INI_DIR/conf.d/xdebug.ini" && \
  		mkdir /tmp/xdebug; \
  	fi
  
  # Disable apache access logging (error logging is still enabled)
  
negative.code: 	php -- --install-dir=/usr/local/bin --filename=composer --version=2.0.9
  
  COPY composer.json .
  RUN composer update --quiet --no-interaction
  
  COPY --from=builder /smr .
  RUN rm -rf /var/www/html/ && ln -s "$(pwd)/src/htdocs" /var/www/html
  