Alpine Linux

A very small Linux distribution often used as a base image because it is only a few megabytes.

In more detail

Alpine uses the musl C library and the BusyBox tools instead of the larger GNU ones, and its package manager is apk. Its /bin/sh is ash from BusyBox, and bash is not installed unless you add it.

Examples

apk add bash
docker run --rm alpine:3.20 grep ^NAME= /etc/os-release
node:alpine is a common base for the runner stage when a distroless image does not fit.
FROM golang:alpine AS build
node:22-alpine is a common base for Next.js images; add libc6-compat if a native package needs glibc.

Related terms

Taught in

References