From eb29081f2f0c4ec6f55d19a15a121c0c93b6cba8 Mon Sep 17 00:00:00 2001 From: Alexandru Giurgiu Date: Fri, 3 Mar 2017 15:20:08 +0200 Subject: [PATCH] switched to the msd-java base image, which allows settings the java options via the JAVA_OPTS environment variable --- docker/queue-master/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/queue-master/Dockerfile b/docker/queue-master/Dockerfile index d157724..f583113 100644 --- a/docker/queue-master/Dockerfile +++ b/docker/queue-master/Dockerfile @@ -1,6 +1,7 @@ -FROM java:openjdk-8-alpine +FROM weaveworksdemos/msd-java:latest WORKDIR /usr/src/app COPY *.jar ./app.jar -ENTRYPOINT ["java","-Djava.security.egd=file:/dev/urandom","-jar","./app.jar", "--port=80"] +ENV JAVA_OPTS "-Djava.security.egd=file:/dev/urandom" +ENTRYPOINT ["/usr/local/bin/java.sh","-jar","./app.jar", "--port=80"]