Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/techprimers/multi-stage-example

Multi Stage docker build example
https://github.com/techprimers/multi-stage-example

docker dockerfile multi-stage-build multi-stage-docker spring-boot spring-boot-2

Last synced: about 2 months ago
JSON representation

Multi Stage docker build example

Awesome Lists containing this project

README

        

# Multi Stage Docker build example
`Dockerfile` contains various stages which are tagged by a name using `as`.

## Commands used
- `docker build . -t multi-stage-example:v1` - Build image
- `docker build . -t multi-stage-example:v1 --target=builder` - Build image using a specific stage
- `docker run multi-stage-example:v1 -p 8080:8080` - Run image