Skip to content

thiagolsfortunato/docker-multi-stage-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-mult-stage-build

Multi-stage builds are a new feature requiring Docker 17.05 or higher on the daemon and client. Multistage builds are useful to anyone who has struggled to optimize Dockerfiles while keeping them easy to read and maintain.

build in dev

docker build --target dev -t python-app:dev .

build in prod

docker build --target prod -t python-app:prod .

Docker Build Kit

DOCKER_BUILDKIT=1 docker build --target dev -t python-app:dev .
DOCKER_BUILDKIT=1 docker build --target prod -t python-app:prod .

references:

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages