Headscale Series: Packaging Source-Built Headscale as a Docker Image
· 2 min read
The official Headscale image is usually around 80MB in docker images. In contrast, custom images built from a handwritten Dockerfile are often much larger and harder to keep consistent with upstream releases.
This guide shows a closer-to-official approach: use ko to package a source-built Headscale Go binary into a minimal container image without maintaining a Dockerfile.