All Projects → arun-gupta → Docker Java Multistage

arun-gupta / Docker Java Multistage

Licence: apache-2.0
Docker Java Multi-stage Builds

Programming Languages

java
68154 projects - #9 most used programming language

= Multi-stage Docker Build for Java Applications

This repository shows how to create a multi-stage Docker build for Java application.

== Single-stage

. Build: docker image build -f Dockerfile.single -t people:singlestage . . Run: docker container run -it -p 8080:8080 people:singlestage . Access: curl http://localhost:8080/people/resources/persons

== Multi-stage

. Build: docker image build -f Dockerfile -t people:multistage . . Run: docker container run -it -p 8080:8080 people:multistage . Access: curl http://localhost:8080/people/resources/persons

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].