anchor.diff:      && echo 'IncludeOptional conf/sites-enabled/*.conf' >> /usr/local/apache2/conf/httpd.conf
   
   # Install Product Opener from the workdir
  -ADD . "/opt/product-opener/"
  -WORKDIR "/opt/product-opener"
  +COPY . /opt/product-opener/
  +WORKDIR /opt/product-opener
   
   # Copy Perl libraries from the builder image
   COPY --from=builder /tmp/local/ /opt/product-opener/local/
  -
  -# Remove APK cache
  -RUN set -x \
  -    && rm -rf /var/cache/apk/* \
  -    && rm -rf /tmp/*
  
positive.code: RUN cpm install ExtUtils::XSBuilder::ParseSource
  
  # Install Product Opener from the workdir.
  ADD ./cpanfile /tmp/cpanfile
  
  # Add ProductOpener runtime dependencies from cpan
  RUN cpm install
  
  FROM hangy/httpd-alpine-perl-modperl
  
  # Remove APK cache
  RUN set -x \
      && rm -rf /var/cache/apk/* \
      && rm -rf /tmp/*
      
  # As of Alpine 3.7, zbar is only available in testing.
  RUN echo -e '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main\n@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community\n@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories
  
  # Update alpine package index
  RUN apk update
  
  RUN apk add imagemagick6 graphviz tesseract-ocr geoip \
      && /etc/periodic/monthly/geoip \
      && ln -s /usr/share/GeoIP /usr/local/share/GeoIP
  
  # As of Alpine 3.7, zbar is only available in testing.
  RUN apk add imagemagick@edge zbar@testing
  
  # Prepare Apache to include our custom config
  RUN set -x \
  
negative.code: FROM hangy/httpd-alpine-perl-modperl AS builder
  
  RUN set -x \
  	&& echo -e '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main\n@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community\n@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
  	&& apk --update --no-cache add \
  		alpine-sdk \
  		imagemagick6 \
  		imagemagick6-dev \
  		graphviz \
  		graphviz-dev \
  		tesseract-ocr \
  		tesseract-ocr-dev \
  		# As of Alpine 3.7, zbar is only available in testing.
  		imagemagick@edge \
  		zbar@testing \
  		zbar-dev@testing
  
  WORKDIR /tmp
  
  