Skip to content

Commit

Permalink
add arg
Browse files Browse the repository at this point in the history
  • Loading branch information
rasheedamir authored Dec 3, 2023
1 parent d7140de commit 37eaf39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
ARG MVN_CMD="clean package"

#################################################################################
##### BUILD
#################################################################################
FROM maven:3.8.6-openjdk-11-slim AS build

ARG MVN_CMD

COPY src /usr/src/app/src
COPY pom.xml /usr/src/app
RUN mvn -f /usr/src/app/pom.xml clean package
RUN mvn -f /usr/src/app/pom.xml ${MVN_CMD}

#################################################################################
##### RUN
Expand Down

0 comments on commit 37eaf39

Please sign in to comment.