Skip to content

Commit

Permalink
Update Dockerfile-mvn-no-local
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensrtw authored Sep 19, 2024
1 parent 843b8c3 commit 8c4c6c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile-mvn-no-local
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ 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

# 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
Expand Down

0 comments on commit 8c4c6c4

Please sign in to comment.