Public Repository

Last pushed: 4 months ago
Short Description
Short description is empty for this repo.
Full Description

Dockerfile:

FROM java:7
COPY One.java .
RUN javac One.java
CMD ["java", "One"]

One.java
public class One {
public static void main(String args[]) {
System.out.println("One by ashok, from Java !!");
}
}

Build image
sudo docker build -t ashokmor/demos-java:1.0 .

Run docker image
docker run -it -d ashokmor/demos-java:1.0 /bin/bash

Docker Pull Command
Owner
ashokmor