anchor.diff:  # -----------------------------------------------------------------------------
   # This stage builds the application container.
   # -----------------------------------------------------------------------------
  -FROM python:3.9-alpine3.12 as application
  +FROM python:3.9-alpine3.13 as application
   
   # Docker-specific default configuration
   ENV IMS_HOSTNAME="0.0.0.0"
  
positive.code: # -----------------------------------------------------------------------------
  # This stage builds the build container.
  # -----------------------------------------------------------------------------
  FROM python:3.9-alpine3.12 as build
  
  # Install compiler toolchain and libraries.
  RUN apk add --no-cache build-base libffi-dev libressl-dev
  
  # Install/upgrade pip
  RUN python -m pip install --upgrade pip
  
  # Paths
  ENV IMS_SOURCE_DIR="/src/ims"
  
negative.code: 
  # Create server root and make that our working directory
  RUN install -o daemon -g daemon -d "${IMS_SERVER_ROOT}"
  
  # Copy build result
  ENV IMS_INSTALL_DIR="/opt/ims"
  COPY --from=build "${IMS_INSTALL_DIR}" "${IMS_INSTALL_DIR}"
  
  # Set user and default working directory
  USER daemon:daemon
  WORKDIR "${IMS_SERVER_ROOT}"
  
  # Expose service port
  EXPOSE 80
  
  # Default command
  CMD [ "/opt/ims/bin/ims", "--log-file", "-", "server" ]
  