diff --git a/Dockerfile-mvn-no-local b/Dockerfile-mvn-no-local index 04832c0df..7ed4a7545 100644 --- a/Dockerfile-mvn-no-local +++ b/Dockerfile-mvn-no-local @@ -3,7 +3,7 @@ WORKDIR /code ARG CODEARTIFACT_AUTH_TOKEN ARG MAVEN_PROFILE=webapi-docker ARG MAVEN_PARAMS="-DskipUnitTests -DskipITtests -D\"maven.test.skip\"=true" # can use maven options, e.g. -DskipTests=true -DskipUnitTests=true - +ARG MAVEN_M2="m2/settings.xml" ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.17.0 ENV CODEARTIFACT_AUTH_TOKEN=${CODEARTIFACT_AUTH_TOKEN} RUN curl -LSsO https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${OPENTELEMETRY_JAVA_AGENT_VERSION}/opentelemetry-javaagent.jar @@ -11,11 +11,11 @@ RUN curl -LSsO https://github.com/open-telemetry/opentelemetry-java-instrumentat # Download dependencies COPY pom.xml /code/ RUN mkdir .git \ - && mvn package -P${MAVEN_PROFILE} + && mvn package -s ${MAVEN_M2} -P${MAVEN_PROFILE} # Compile code and repackage it COPY src /code/src -RUN mvn package ${MAVEN_PARAMS} -P${MAVEN_PROFILE} +RUN mvn package -s ${MAVEN_PARAMS} -P${MAVEN_PROFILE} # OHDSI WebAPI and ATLAS web application running as a Spring Boot application with Java 11 FROM 201959883603.dkr.ecr.us-east-2.amazonaws.com/mdaca/base-images/ironbank-alpine-java:3.20.2_jdk17