Skip to main content

One post tagged with "image build"

Container image size optimization, source packaging, and release workflows.

View all tags

Headscale Series: Packaging Source-Built Headscale as a Docker Image

· 2 min read
Larktun Contributor

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.