Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Use JRE, do not override JAVA_OPTS
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Nov 21, 2017
1 parent 479c23e commit 3bd913a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/shipping/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM weaveworksdemos/msd-java:latest
FROM weaveworksdemos/msd-java:jre-latest

WORKDIR /usr/src/app
COPY *.jar ./app.jar
Expand All @@ -21,5 +21,4 @@ LABEL org.label-schema.vendor="Weaveworks" \
org.label-schema.vcs-ref="${COMMIT}" \
org.label-schema.schema-version="1.0"

ENV JAVA_OPTS "-Djava.security.egd=file:/dev/urandom"
ENTRYPOINT ["/usr/local/bin/java.sh","-jar","./app.jar", "--port=80"]

0 comments on commit 3bd913a

Please sign in to comment.