2024-03-22 11:24:27 +00:00
|
|
|
---
|
2024-03-25 12:49:46 +00:00
|
|
|
title: Building Container Images the Modern Way
|
2024-03-22 11:24:27 +00:00
|
|
|
weight: 1
|
2024-03-25 12:45:10 +00:00
|
|
|
tags:
|
|
|
|
- images
|
|
|
|
- buildpacks
|
2024-03-22 11:24:27 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
## Problems
|
|
|
|
|
|
|
|
* Dockerfiles are hard and not 100% reproducible
|
2024-03-26 14:19:51 +00:00
|
|
|
* Buildpacks are reproducible but result in large single-arch images
|
2024-03-22 11:24:27 +00:00
|
|
|
* Nix has multiple ways of doing things
|
|
|
|
|
|
|
|
## Solutions
|
|
|
|
|
2024-03-26 14:19:51 +00:00
|
|
|
* Dagger as a CI solution
|
|
|
|
* Multistage docker images with distroless -> Small image, small attack surface
|
|
|
|
* Language specific solutions (`ki`, `jib`)
|