This is a simple repo to create a Docker image with Alpine and s6-overlay.
-
The s6-overlay provides tarballs for the following architectures: amd64, x86, aarch64, arm, and armhf.
-
The experimental docker
buildx
plugin can do mutli-arch builds easily. The architectures it creates images for are: arm, arm64, arm/v7, arm/v6, arm/v8, 386, and amd64.
This image downloads the correct tarball for the various architectures that and creates images for the architectures that buildx supports. That's all. I can then refer to rakheshster/alpine-s6:3.12-2.0.0.1
for instance in my Dockerfile to create new images based on this.
In buildx
the $TARGETARCH
variable contains the architecture while the $TARGETVARIANT
contains the variant if any. In the case of ARM I use the $TARGETVARIANT
to identify which of arm, armhf, or aarch64 to target.
The version numbers are of format <alpine version>-<s6 version>
.