Skip to content

TechPrimers/multi-stage-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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