From 8c4c6c4fce28d594a9adeef9d1b895f4b507c1a6 Mon Sep 17 00:00:00 2001 From: stevensrtw <50691414+stevensrtw@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:06:13 -0400 Subject: [PATCH] Update Dockerfile-mvn-no-local --- Dockerfile-mvn-no-local | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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