Skip to content

Commit

Permalink
It should be an arg, not an environment value
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Mar 15, 2021
1 parent 9481e21 commit 14a6dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ENV VERSION=0.0.1
ARG VERSION=0.0.1

FROM maven:3.6.3-jdk-8 AS build-env
WORKDIR /app
Expand All @@ -12,7 +12,7 @@ RUN mvn dependency:tree
COPY . ./

# Update the package version
RUN mvn versions:set -DnewVersion=${VERSION}
RUN mvn versions:set -DnewVersion=VERSION

# Now build
RUN mvn package -DfinalName=app
Expand Down

0 comments on commit 14a6dca

Please sign in to comment.