Steps:
1. Create Test.java file
2. Type a simple program that prints "Hello World"
3. Save and compile: javac Test.java
4. Create docker file and type the following configurations:
FROM openjdk:11
WORKDIR /Users/Yeshwant_Rao/Desktop/DockerEg
COPY . /Users/Yeshwant_Rao/Desktop/DockerEg
RUN javac Test.java
CMD ["java", "Test"]
5. Build the container: docker build -t "example1helloworld" .
Intended Audience: 2nd Year Diploma Students (Karnataka DTEK C20 Syllabus)
Subject: Software Engineering Principles and Practices
In questa pagina del sito puoi guardare il video online Running a Simple "Hello World" Java Program Using Docker della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Yeshwant Rao B 24 marzo 2025, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 551 volte e gli è piaciuto 20 spettatori. Buona visione!