How to Build TINY Docker Containers (and Why!)

Опубликовано: 31 Октябрь 2024
на канале: DevOps Toolbox
5,739
320

I want to cover something I feel engineers tend to neglect: image sizes and they're attach surface (more of then than not in correlation). I'm explaining my method of cutting down a seemingly best practice container using the official Golang image in this instance, and I cut it down in steps, while incorporating a multi stage build. Small images are light on the registries hosting them, the cache instances that hold them, and the servers that pull them. They're also quicker to instantiate, quicker to debug, build and publish. On top of all that they are FAR more secure!

Subscribe to my channel!
=======================================
Subscribe for more videos like this: https://www.youtube.com/@devopstoolbo...
My blog: https://omerxx.com
Dev & Ops tools Telegram channel: https://t.me/espressops

Favourite Gear
=======================================
If you enjoy my content, using the links below will help me with a small commission, so thank you!
⌨️ My keyboard is the wonderful HHKB: https://amzn.to/3HwJG60
🔗 The HHKB is wired with a high quality coiled cable: https://amzn.to/3DCA87d
⌨️ Backup keyboard (for traveling mainly) - Nuphy Air60: https://amzn.to/3R3M7jz
🖥️ My ultra wide 49" monitor: https://amzn.to/3JbVThC
🎙️ Microphone - HyperX Quadcast: https://amzn.to/3kLcNJR
🦾 Heavy Duty Monitor Arm: https://amzn.to/3kKp7tS
🖱️ Mouse - MX Master 3: https://amzn.to/3DiZmaj

Chapters:
=======================================
00:00 - A basic Dockerfile
00:46 - First improvement
01:25 - Alpine!
02:33 - Multi stage Dockerfile
04:10 - From SCRATCH
05:13 - Buildpacks

#neovim #devops #platformengineering #terminal #dev #git #cloud #cli #terminal #dev #ops #ricing #linux #macos #commandline #typing #keyboard

Music:
=======================================
Faithful Mission by Artificial.Music |   / artificial-music  
Music promoted by https://www.chosic.com/free-music/all/
Creative Commons CC BY 3.0
https://creativecommons.org/licenses/...

When I Was A Boy by Tokyo Music Walker |   / user-356546060  
Music promoted by https://www.chosic.com/free-music/all/
Creative Commons CC BY 3.0
https://creativecommons.org/licenses/...