anchor.diff:  # Arguments that can be passed at build time
   ARG APP_DIR=/opt/owasp/dependency-track
   ARG DATA_DIR=/data
  -ARG EXT_LIB_DIR=/extlib
   ARG USER=dtrack
   
   # Environment variables that can be passed at runtime
  
positive.code: RUN mkdir -p ${APP_DIR}
  
  # Create the external library directory
  RUN mkdir -p ${EXT_LIB_DIR}
  
  # Create a user and assign home directory to a non-standard path
  RUN adduser -h ${DATA_DIR} -s bash -D ${USER}
  
  # Specify the user to run commands as
  USER ${USER}
  
  # Copy the compiled WAR to the application directory created above
  COPY ./target/dependency-track-embedded.war ${APP_DIR}
  
negative.code: VOLUME ${DATA_DIR}
  
  # Download optional JDBC drivers to the external library directory
  ADD http://central.maven.org/maven2/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar /extlib
  ADD http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.47/mysql-connector-java-5.1.47.jar /extlib
  ADD http://central.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}
  
  EXPOSE 8080
  
  # Launch Dependency-Track
  WORKDIR ${APP_DIR}
  CMD java $JAVA_OPTIONS -jar dependency-track-embedded.war