Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 349 Bytes

README.md

File metadata and controls

7 lines (6 loc) · 349 Bytes

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