anchor.diff:  EXPOSE 8080
   
   # Switch to usermode
  -USER 104
  +USER 104
positive.code: # Use the offical nginx (based on debian)
  FROM nginx:stable
  
  # Required for HTTP Basic feature
  RUN apt-get update -y && \
    apt-get install -y openssl ca-certificates && \
    rm -rf /var/lib/apt/lists/*
  
  # Copy our OpenShift s2i scripts over to default location
  COPY ./s2i/bin/ /usr/libexec/s2i/
  
negative.code: # Copy config from source to container
  COPY nginx.conf.template /tmp/
  
  # =================================================================================
  # Fix up permissions
  # ref: https://torstenwalter.de/openshift/nginx/2017/08/04/nginx-on-openshift.html
  # - S2I sripts must be executable
  # - Make sure nginx can read and write it's working directories.
  # - The container dynamically configures nginx on startup
  # - The application artifacts live in /tmp
  # ---------------------------------------------------------------------------------
  RUN chmod -R g+rwx $STI_SCRIPTS_PATH
  RUN chmod g+rw /var/cache/nginx \ 
                 /var/run \
                 /var/log/nginx \
                 /etc/nginx/nginx.conf \
                 /tmp
  # =================================================================================
  
  # Work-around for issues with S2I builds on Windows
  WORKDIR /tmp
  