anchor.diff:  ARG APP_DIR=/opt/owasp/dependency-track
   ARG DATA_DIR=/data
   ARG USER=dtrack
  +ARG EXT_LIB=/extlib
   
   # The default logging level
   ENV LOGGING_LEVEL=INFO
   
   # Environment variables that can be passed at runtime
  -ENV JAVA_OPTIONS="-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Xmx4G"
  +ENV JAVA_OPTIONS="-Xmx4G"
   
   # Create the application directory where Dependency-Track will be installed
   RUN mkdir -p ${APP_DIR}
   
   # Create the external library directory
  -RUN mkdir -p /extlib
  +RUN mkdir -p ${EXT_LIB}
   
   # Create a user and assign home directory to a non-standard path
   RUN adduser -h ${DATA_DIR} -s bash -D ${USER}
  
positive.code: VOLUME ${DATA_DIR}
  
  # Download optional JDBC drivers to the external library directory
  ADD https://repo1.maven.org/maven2/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar /extlib
  ADD https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar /extlib
  ADD https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/7.1.3.jre8-preview/mssql-jdbc-7.1.3.jre8-preview.jar /extlib
  RUN chown -f -R ${USER}:${USER} /extlib
  
  # Specify the user to run commands as
  USER ${USER}
  
negative.code: FROM adoptopenjdk/openjdk11:alpine-jre
  LABEL maintainer="steve.springett@owasp.org"
  LABEL vendor="OWASP"
  
  