diff options
author | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2020-04-15 10:14:32 +0200 |
---|---|---|
committer | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2020-04-15 10:38:01 +0200 |
commit | 2fdf10710620c68ce59cec5c4456709fb62a286a (patch) | |
tree | 34d66e7c6f92e526fe28338597bc12033f7e361e /netconfsimulator/docker/Dockerfile | |
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 'netconfsimulator/docker/Dockerfile')
-rw-r--r-- | netconfsimulator/docker/Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/netconfsimulator/docker/Dockerfile b/netconfsimulator/docker/Dockerfile index 63bb3ee..d7d27a9 100644 --- a/netconfsimulator/docker/Dockerfile +++ b/netconfsimulator/docker/Dockerfile @@ -1,4 +1,7 @@ FROM docker.io/openjdk:8-jre-alpine + +ARG VERSION=${version} + ADD libs /app/libs -ADD netconfsimulator-1.0.0-SNAPSHOT.jar /app/netconf-simulator.jar +ADD netconfsimulator-${VERSION}.jar /app/netconf-simulator.jar CMD java -cp /app/libs/*:/app/netconf-simulator.jar org.onap.netconfsimulator.Main |