How to Use Docker Multi-Stage Build to Create Optimal Images for Dev And Productionby@geshanm

How to Use Docker Multi-Stage Build to Create Optimal Images for Dev And Production

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

From Docker v 17.05, multi-stage build lets us build docker images in stages with multiple FROM statements. Multi-stage builds are more streamlined and we have optimized our images to be more environment-specific. We look into how you can exploit docker multi-structure build to build optimal images suited for dev/test and production with a NodeJs example application. We start with a base image that has node, then copy needed files to the image like 1-5-5MB for production.

Company Mentioned

Mention Thumbnail
featured image - How to Use Docker Multi-Stage Build to Create Optimal Images for Dev And Production
Geshan Manandhar HackerNoon profile picture

@geshanm

Geshan Manandhar

Lead Software Engineer, Technologist, Agile follower. Google Developer Expert Certified Scrum Master


Receive Stories from @geshanm

react to story with heart
Geshan Manandhar HackerNoon profile picture
by Geshan Manandhar @geshanm.Lead Software Engineer, Technologist, Agile follower. Google Developer Expert Certified Scrum Master
My Blog

RELATED STORIES

L O A D I N G
. . . comments & more!