Public Repository

Last pushed: a year ago
Short Description
Simple Java Hello example image
Full Description
  1. Create a maven project to out put a Hello. Build and package the jar.
  2. Create the Dockerfile as below

FROM java:8
COPY TestDoc-0.0.1-SNAPSHOT.jar /opt ## Copy the jar file to /opt in the docker machine
CMD java -jar opt/TestDoc-0.0.1-SNAPSHOT.jar # execute the jar

Docker Pull Command