Ubuntu 14.04.2 LTS / Oracle Java 8 (1.8.0_66) from PPA with `java` user
10K+
java userFROM keks/java-base
MAINTAINER Jan M. <[email protected]>
RUN adduser --system --group --gecos "java user" java
USER java
VOLUME ["/deploy"]
ENTRYPOINT ["java"]
Should be self-explanatory: a user is added (with a low userid like it would be generated when installing a service - makes mounting folders easier since the user and group will be identical across all my docker images and i only have to chown messagebus:fuse), the /deploy folder is generated and the entrypoint is set to java so a call like:
docker run -d -i -t --name myservice -v /local/folder/with/jars:/deploy keks/java -jar /deploy/my.jar
will just run your jar
Content type
Image
Digest
sha256:1949ae2d2…
Size
319.2 MB
Last updated
almost 11 years ago
docker pull keks/java