Dockerfiles for builder images
 
 
Go to file
Menci fba66b6ef5
Add multiarch (amd64) support
2021-12-08 01:45:12 +08:00
.github/workflows Add multiarch (amd64) support 2021-12-08 01:45:12 +08:00
files Add multiarch (amd64) support 2021-12-08 01:45:12 +08:00
Dockerfile Add multiarch (amd64) support 2021-12-08 01:45:12 +08:00
LICENSE Initial commit 2021-12-07 01:06:12 +08:00
README.md Add multiarch (amd64) support 2021-12-08 01:45:12 +08:00

README.md

Arch Linux Docker Image (Multiarch)

Build and Push

This is the Docker image for Arch Linux ARM but for compatibility AMD64 build is also included. All images are built on GitHub Actions automatically.

Just just like the official Arch Linux AMD64 image, it has two tags:

  • base (default): installed only the package group base.
  • base-devel: installed the package group base-devel.

And, the pamcan lsign-key is also removed for security reasons.

Under the Hood

The Dockerfile uses a Alpine Linux container to install pacman and bootstrap the Arch Linux ARM rootfs. Since pacstrap uses mount, it doesn't run in an unprivileged Docker container. I found the tool pacstrap-docker (LICENSE) as a replacement.

After bootstrapping, the rootfs will be copied to a new container from scratch (aka. an empty file system), which will be commited as the result image.