Skip to content

Commit 14a6dca

Browse files
committed
It should be an arg, not an environment value
1 parent 9481e21 commit 14a6dca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ENV VERSION=0.0.1
1+
ARG VERSION=0.0.1
22

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

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

1717
# Now build
1818
RUN mvn package -DfinalName=app

0 commit comments

Comments
 (0)