Faster builds and slimmer images with Docker multistage builds by Gustaf Cele

Опубликовано: 21 Сентябрь 2024
на канале: Jfokus
194
4

Docker is a great tool for creating a predictable environment for running systems - and this includes our builds. In this talk, we'll see how we can make our images slimmer by clever layering, we'll explore how to implement pretty much any build process you can think of by using only a single multi-stage Dockerfile, and how to make this build faster by leveraging the Docker build cache. For frosting on the cake, we'll also have a look at how to turn your existing Docker repo into a distributed build cache, but we swear nobody'll notice you did it (unless they look at your suspiciously fast builds, of course).

This talk is guaranteed 100% free from YAML and JSON.

Gustaf Cele, Mejsla AB

Recorded at Jfokus 2023 in Stockholm 8th of february