Skip to main content

Larktun Blog

Larktun Blog for zero-trust networking, secure remote access, Headscale, mobile access, secure SSH, release notes, and implementation case studies.

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

· 3 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.

This post documents a closer-to-official approach: use ko to package Headscale into a container image, instead of maintaining a Dockerfile.

Original post: Headscale series: package source-built headscale as Docker image