docker-alpine-s6
What is this?
This is a simple repo to create a Docker image with Alpine and s6-overlay.
-
The s6-overlay provides tarballs for the following architectures: aarch64, x86_64
-
The experimental docker
buildx
plugin can do mutli-arch builds easily. The architectures it creates images for are: arm64 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 ghcr.io/gmarcy/alpine-s6:3.17.3-3.1.4.2
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>
.