Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 756 Bytes

File metadata and controls

35 lines (24 loc) · 756 Bytes

docker-with-java-demos

These are example projects that correlate with my blog post here.

docker-multi-stage-build-demo

To build the image:

$ cd docker-multi-stage-build-demo
$ docker build -t anna/docker-multi-stage-build-demo:1.0-SNAPSHOT .

docker-normal-build-demo

To build the image:

$ cd docker-normal-build-demo
$ docker build -t anna/docker-normal-build-demo:1.0-SNAPSHOT .

docker-package-only-build-demo

First, package the source code:

$ cd docker-package-only-build-demo
$ mvn clean package

Then, build the image:

$ docker build -t anna/docker-normal-build-demo:1.0-SNAPSHOT .