diff options
author | 2020-04-15 10:14:32 +0200 | |
---|---|---|
committer | 2020-04-15 10:38:01 +0200 | |
commit | 2fdf10710620c68ce59cec5c4456709fb62a286a (patch) | |
tree | 34d66e7c6f92e526fe28338597bc12033f7e361e /pnfsimulator | |
parent | 7662b3c13d431dc2e59c784210277c16af0d9f7d (diff) |
Adding version as variable in Dockerfiles
Issue-ID: INT-1517
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: I701583e9d5ed1089178cd5bd590034dd7bcc9402
Diffstat (limited to 'pnfsimulator')
-rw-r--r-- | pnfsimulator/Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pnfsimulator/Dockerfile b/pnfsimulator/Dockerfile index 4202047..7cadcf4 100644 --- a/pnfsimulator/Dockerfile +++ b/pnfsimulator/Dockerfile @@ -1,6 +1,9 @@ FROM docker.io/openjdk:8-jre-alpine + +ARG VERSION=${version} + ADD target/libs /app/libs -ADD target/pnfsimulator-1.0.0-SNAPSHOT.jar /app/pnf-simulator.jar +ADD target/pnfsimulator-${VERSION}.jar /app/pnf-simulator.jar CMD apk update CMD apk add ca-certificates ADD certificates /usr/local/share/ca-certificates/ |