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 18, 2024
1 parent 2526f3b commit ac67253
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile-mvn-no-local
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM maven:3.9.7-eclipse-temurin-17-alpine AS builder
WORKDIR /code

ARG MAVEN_PROFILE=webapi-docker
ARG MAVEN_PARAMS="" # can use maven options, e.g. -DskipTests=true -DskipUnitTests=true
ARG MAVEN_PARAMS="-DskipUnitTests -DskipITtests -D\"maven.test.skip\"=true" # can use maven options, e.g. -DskipTests=true -DskipUnitTests=true

ARG OPENTELEMETRY_JAVA_AGENT_VERSION=1.17.0
RUN curl -LSsO https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v${OPENTELEMETRY_JAVA_AGENT_VERSION}/opentelemetry-javaagent.jar
Expand All @@ -13,9 +13,6 @@ RUN mkdir .git \
&& mvn package \
-P${MAVEN_PROFILE}

ARG GIT_BRANCH=unknown
ARG GIT_COMMIT_ID_ABBREV=unknown

# Compile code and repackage it
COPY src /code/src
RUN mvn package ${MAVEN_PARAMS} \
Expand Down

0 comments on commit ac67253

Please sign in to comment.