Skip to content

Commit bdc12c6

Browse files
committed
Implement the hello-world example in java
[refs #61aa1809f705]
1 parent 09ac502 commit bdc12c6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM openjdk:8u151-jdk-alpine
2+
3+
WORKDIR /usr/share/myapp
4+
COPY HelloWorld.java .
5+
6+
RUN javac HelloWorld.java
7+
CMD ["java", "HelloWorld"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class HelloWorld {
2+
public static void main(String[] args) {
3+
System.out.println("Hello World!"); // Display the string.
4+
}
5+
}

0 commit comments

Comments
 (0)