Using Docker Multi-Stage Builds

preview_player
Показать описание
Is Dockerfile only for building container images or we can do more with it? How about using Docker multi-stage builds to compile binaries, run tests, and other operations typically performed before building container images?

#docker #container #containerimage #dockerimage

▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬

▬▬▬▬▬▬ ⏱ Timecodes ⏱ ▬▬▬▬▬▬
00:00 Going beyond building container images
00:58 Using a simple Dockerfile
03:52 Using a "fat" Dockerfile
08:57 Using multi-stage Docker builds
12:18 Final verdict

▬▬▬▬▬▬ 🚀 Courses, books, and podcasts 🚀 ▬▬▬▬▬▬

▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬
Рекомендации по теме
Комментарии
Автор

I don't usually subscribe after one video, but this was straight to the point, with real life example which is very useful.

zerobog
Автор

Are you using multi-stage builds or you prefer building, testing, etc. outside Dockerfile?

DevOpsToolkit
Автор

Thank you Viktor, always great to refresh on the fundamentals. I've had to explain multistage builds to developers recently, your vid would have been of great help, bookmarked for later :)

Peter
Автор

I m watching from Turkey. Thank you boss

polatalemdar
Автор

Thank Viktor. I use multi-stage builds for long time.
A video in the future about kubernetes operators (maybe vs helm) will be great.

chrisre
Автор

Checking Youtube and found this video.
By far one of the best videos I found around the topic multi-stage docker builds.
@DevOpsToolkit thank you for keeping it simple and straight.

MuthaNagavamsi
Автор

What a brilliant tutorial! You are a great man sir. Keep up the good work.

namelessyoutubechannel
Автор

Sweet, simple and to the point video. Subscribed!

mytubeuser
Автор

Thanks Viktor, for a good reminder on Docker. Always great videos.

vimalneha
Автор

Great and simple explanation, what else could you ask for.

jikol
Автор

I use multi-stage builds in a similar way for my Python apps. I like to use python:3-buster (~850MB) as the build image and then python:3-slim-buster (~115MB) as the final image. This allows things (e.g. cffi) to compile during the build w/o the bloat needed in the run.

mtik
Автор

We use multi-stage builds on Golang projects and for compiling JavaScript static content. But sometimes come node js developers with dependencies up to 1Gb that needed in runtime.

aleksandrarestov
Автор

Such a great explanation and so to the point. Thanks a lot.

paurushgargtube
Автор

This was great thank you for the thorough explanation!

CarloNyte
Автор

Excellent explanation thank you a lot Sir!

lastidea
Автор

Really good video, and channel in general. I wish I have found it earlier.

Автор

Amazing content! I have learned a lot with your videos

lolFJKify
Автор

Great video Viktor 👍 could you please make video on kubernete operators.

sanketjaiswal
Автор

Thanks for the wonderful explanation. I have one question; there are multiple docker image optimization techniques and one of them is using multi-stage build. Can you suggest why should anyone use any other technique (choosing minimal base image, minimize layer size and count, cache image layers, etc) when they are using multistage which eventually reduce image size and layers ?

RVRead
Автор

Great video as always. Is there a way you can catch the Unit Test error and feedback to your CI system, where you can clearly tell the user the Unit Test failed? As not all developers are willing to dive into the Jenkins (or other CI tools) and look into the logs, would be nice if there's a way to clearly identify it as a "unit test" error.

misteryu