Learn how to create production-ready Docker images with Multi-Stage Builds in this video tutorial. Discover the benefits of using Multi-Stage Builds, including reducing the final image size and increasing security by only including necessary dependencies.
Additionally, learn how to structure a multi-stage Dockerfile for building both local development and deployable production images for deployment in non-local environments like QA, Staging, Pre-prod, and Prod.
https://www.devteds.com/multi-stage-d...
Following are the steps to walk through,
1. Learn how to use an existing application and write a Dockerfile to build an image and run it locally using Docker Compose
2. Discover how to rewrite the Dockerfile with a multi-stage structure
3. Learn how to use the new multi-stage Dockerfile to build an image to run locally
4. Discover how to update the Dockerfile to add stages to build a production-ready, deployable image
5. Learn how to build a deployable image using the final multi-stage Dockerfile
6. Discover how to test running the application using the production-ready, deployable image
Chapters:
------------------------------------------------------------------------
00:00 Introduction
00:35 Example app
02:51 Dockerize
09:19 Why Multi-Stage
11:05 Build Mutli-Stage
20:42 Test prod image
23:18 Conclude
Find references and software/tool version details here - https://www.devteds.com/multi-stage-d...
------------------------------------------------------------------------
Source code:
https://github.com/devteds/multi-stag...
------------------------------------------------------------------------
Related content:
Course: Kubernetes on AWS (Hands-on Get Started Guide):
https://devteds.com/k8s
Episode #8 - MySQL and PostgreSQL with Docker in Development
• MySQL & PostgreSQL with Docker in dev...
------------------------------------------------------------------------
Commands & README:
https://github.com/devteds/multi-stag...
------------------------------------------------------------------------
Author:
Chandra Shettigar | Devteds, LLC
https://www.devteds.com, / shettigarc , / shettigar
------------------------------------------------------------------------