summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorQuoc Nghia Nguyen <quocnghia.nguyen@orange.com>2018-04-11 17:41:16 +0200
committerQuoc Nghia Nguyen <quocnghia.nguyen@orange.com>2018-04-11 17:49:20 +0200
commit3b0d0e86c93cf30a7954686bf68d26c57fdd3ebb (patch)
tree3689632371f15b46f5f34b9be48cbb8878a55f55 /Dockerfile
parent4a51c360a2e58f81976d7690a82d0b742c0df5da (diff)
Fix docker image publish issue
- Dockerfile: parameterized artifact's filename - pom.xml: added arguments to docker build; update docker-maven-plugin to latest version Change-Id: Ide871738d0024ffe379ce56ead2183619981cfcf Issue-ID: EXTAPI-49 Signed-off-by: Quoc Nghia Nguyen <quocnghia.nguyen@orange.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 5f43f6b..a3c56b2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,7 @@
FROM openjdk:8-jdk-alpine
-ADD target/nbi-rest-services-1.0.0-SNAPSHOT.jar app.jar
+
+ARG PKG_FILENAME=nbi-rest-services-1.0.0-SNAPSHOT.jar
+
+ADD target/$PKG_FILENAME app.jar
ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Dspring.profiles.active=docker -jar"
ENTRYPOINT exec java $JAVA_OPTS /app.jar \ No newline at end of file