Running a Simple "Hello World" Java Program Using Docker
Автор: Yeshwant Rao B
Загружено: 2025-03-24
Просмотров: 329
Описание:
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
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: