This repository provides Rocky Linux-based Node.js images.
Create a builder:
docker buildx create --use --name builder
Build for linux/amd64
and export images to the default image store (docker images
):
docker buildx bake --load
Build for a different or multiple architectures:
docker buildx bake --load --set="*.platform=linux/amd64,linux/arm64"
Note that building images for multiple architectures requires one of the following:
- Containerd image store for the
--load
flag to work - Pushing directly to a registry, e.g.
docker buildx bake --push --set="*.platform=linux/amd64,linux/arm64"
- Using other output types or omitting output flags to keep build cache only