summaryrefslogtreecommitdiffstats
path: root/mod2/auth-service/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'mod2/auth-service/Dockerfile')
-rw-r--r--mod2/auth-service/Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod2/auth-service/Dockerfile b/mod2/auth-service/Dockerfile
index c427bda..aa8707f 100644
--- a/mod2/auth-service/Dockerfile
+++ b/mod2/auth-service/Dockerfile
@@ -2,10 +2,13 @@ FROM onap/integration-java11:7.1.0
WORKDIR /usr/app
VOLUME /tmp
-ADD target/auth-service-1.0.0-SNAPSHOT.jar auth-service-1.0.0-SNAPSHOT.jar
+ARG PROJECT_BUILD_DIR_NAME
+ARG FINAL_JAR
EXPOSE 8082
+COPY ${PROJECT_BUILD_DIR_NAME}/${FINAL_JAR} .
+
ENTRYPOINT ["java", \
"-Djava.security.egd=file:/dev/./urandom", \
"-jar", "auth-service-1.0.0-SNAPSHOT.jar"] \ No newline at end of file