summaryrefslogtreecommitdiffstats
path: root/hv-collector-xnf-simulator/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'hv-collector-xnf-simulator/Dockerfile')
-rw-r--r--hv-collector-xnf-simulator/Dockerfile6
1 files changed, 2 insertions, 4 deletions
diff --git a/hv-collector-xnf-simulator/Dockerfile b/hv-collector-xnf-simulator/Dockerfile
index ed9dd9b4..53e126b2 100644
--- a/hv-collector-xnf-simulator/Dockerfile
+++ b/hv-collector-xnf-simulator/Dockerfile
@@ -1,4 +1,4 @@
-FROM docker.io/openjdk:8-jre-slim
+FROM docker.io/openjdk:11-jre-slim
LABEL copyright="Copyright (C) 2018 NOKIA"
LABEL license.name="The Apache Software License, Version 2.0"
@@ -10,10 +10,8 @@ RUN apt-get update \
&& apt-get clean
WORKDIR /opt/ves-hv-client-simulator
-ENTRYPOINT ["./run-java.sh", "run"]
-COPY target/docker-extra/run-java/run-java.sh ./
-ENV JAVA_MAIN_CLASS=org.onap.dcae.collectors.veshv.simulators.xnf.MainKt
+ENTRYPOINT ["java", "-cp", "*:", "org.onap.dcae.collectors.veshv.simulators.xnf.MainKt"]
COPY target/libs/external/* ./
COPY target/libs/internal/* ./