anchor.diff:  # This stage builds the application container.
   # -----------------------------------------------------------------------------
   FROM python:3.7-alpine3.11 as application
  +
  +# Docker-specific default configuration
  +ENV IMS_HOSTNAME="0.0.0.0"
  +ENV IMS_CONFIG_ROOT="${IMS_INSTALL_DIR}/conf"
  +ENV IMS_SERVER_ROOT="/srv/ims"
  +ENV IMS_DATA_STORE="MySQL"
  +ENV IMS_DIRECTORY="ClubhouseDB"
   
   # Install libraries.
   RUN apk add --no-cache libressl
  
positive.code: # Set user
  USER daemon:daemon
  
  # Docker-specific default configuration
  ENV IMS_HOSTNAME="0.0.0.0"
  ENV IMS_CONFIG_ROOT="${IMS_INSTALL_DIR}/conf"
  ENV IMS_SERVER_ROOT="/srv/ims"
  ENV IMS_DATA_STORE="MySQL"
  
  # Copy build result
  ENV IMS_INSTALL_DIR="/opt/ims"
  COPY --from=build "${IMS_INSTALL_DIR}" "${IMS_INSTALL_DIR}"
  
negative.code: RUN install -o daemon -g daemon -d "${IMS_INSTALL_DIR}"
  USER daemon:daemon
  RUN python -m venv "${IMS_INSTALL_DIR}"
  RUN "${IMS_INSTALL_DIR}/bin/pip" --no-cache-dir install --upgrade pip
  RUN "${IMS_INSTALL_DIR}/bin/pip" --no-cache-dir install "${IMS_SOURCE_DIR}"
  
  
  