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

Written by geshanm | Published 2019/11/26
Tech Story Tags: docker | devops | software-engineering | pipeline | containers-devops | software-development | testing | latest-tech-stories | web-monetization

TLDR 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.via the TL;DR App

no story

Written by geshanm | Lead Software Engineer, Technologist, Agile follower. Google Developer Expert Certified Scrum Master
Published by HackerNoon on 2019/11/26