https://github.com/IITC-College/docker-java-app-distorless
.
├── src/
│ └── Main.java
└── Dockerfile
The application listens on port 3000.
Verify:
src/ directory existsMain.java exists inside src/Do not modify the Java code.
Create a new file named Dockerfile
Open it in your editor.
The first stage is responsible for compiling the Java application.
Use: