anchor.diff:  # -----------------------------------------------------------------------------
   FROM python:3.6-alpine3.7 as application
   
  -COPY --from=build /opt/ims /opt/ims
  +# Copy build result
  +ENV IMS_INSTALL_DIR="/opt/ims"
  +COPY --from=build "${IMS_INSTALL_DIR}" "${IMS_INSTALL_DIR}"
   
  -RUN install -o daemon -g daemon -d /srv/ims
  -WORKDIR /srv/ims
  +# Allow ims_server to bind to privileged port numbers
  +RUN apk add --no-cache libcap
  +RUN setcap "cap_net_bind_service=+ep" "${IMS_INSTALL_DIR}/bin/python"
  +
  +# Configuration
  +ENV IMS_CONFIG_ROOT="${IMS_INSTALL_DIR}/conf"
  +ENV IMS_SERVER_ROOT="/srv/ims"
  +ENV IMS_DATA_STORE="MySQL"
  +
  +RUN install -o daemon -g daemon -d "${IMS_SERVER_ROOT}"
  +WORKDIR "${IMS_SERVER_ROOT}"
   USER daemon:daemon
   
  -EXPOSE 8080
  +EXPOSE 80
   
  -CMD [                                       \
  -    "/opt/ims/bin/ims_server",              \
  -    "--config", "/srv/ims/conf/imsd.conf",  \
  -    "--log-file", "-"                       \
  -]
  +CMD [ "/opt/ims/bin/ims_server", "--log-file", "-" ]
  
positive.code: # -----------------------------------------------------------------------------
  
  # Install compiler toolchain and libraries.
  RUN apk add build-base libffi-dev libressl-dev
  
  # Install/upgrade pip and virtualenv
  RUN pip install --upgrade pip virtualenv
  
  # Copy the source code over
  WORKDIR /src/ims
  
  COPY ./COPYRIGHT.rst  ./
  COPY ./LICENSE.txt    ./
  
negative.code: 
  # Install the application
  WORKDIR /tmp
  RUN install -o daemon -g daemon -d "${IMS_INSTALL_DIR}"
  USER daemon:daemon
  RUN virtualenv "${IMS_INSTALL_DIR}"
  RUN "${IMS_INSTALL_DIR}/bin/pip" --no-cache-dir install "${IMS_SOURCE_DIR}"
  
  
  # -----------------------------------------------------------------------------
  