Skip to content

Instantly share code, notes, and snippets.

@gianuy
Created September 9, 2016 15:26
Show Gist options
  • Save gianuy/70c17c9eafdf7e3fbcd1248d0e5dd73d to your computer and use it in GitHub Desktop.
Save gianuy/70c17c9eafdf7e3fbcd1248d0e5dd73d to your computer and use it in GitHub Desktop.
Eclipse-based Docker and Couchbase Exercises. Sample Hello World to run on a container
FROM openjdk:8
ADD HelloWorld.java .
RUN javac HelloWorld.java
CMD ["java","-cp .", "HelloWorld"]
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello from the Docker World!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment