A flexible Java Docker image with Maven for building and running applications.
74
java_simpleapp is a lightweight Java application designed as an example of how to build and run Java projects using Docker and Maven. This project demonstrates a simple "Hello, World!" application, packaged in a multi-stage Docker build to ensure efficiency and scalability.
git clone https://github.com/YanaDevOps/java_simpleapp.git
cd java_simpleapp
docker build -t java_simpleapp:1.0.0 .
docker run --rm java_simpleapp:1.0.0
When you run the container, the following message will be displayed:
Hello, World from Docker!
java_simpleapp/
āāā Dockerfile
āāā pom.xml
āāā src/
āāā main/
āāā java/
āāā com/
āāā example/
āāā App.java
Name: Yana Lysenko
GitHub: YanaDevOpsā
Content type
Image
Digest
sha256:29b2da27aā¦
Size
116.8 MB
Last updated
over 1 year ago
docker pull yanixdo/java_multistage:1.0