this change modifies your github actions workflow to build docker images for multiple architectures (fixes #18).
docker build is replaced by docker buildx build, which supports setting a --platform parameter to set the architecture.
In your case no cross-compilation is needed, since the dist/ folder you copy into the image is just javascript and therefore platform independent.
The base image nginx:alpine is already a multi-arch image, so in the end buildx will just switch out the base image with the one for the specific architecture.
Hi,
this change modifies your github actions workflow to build docker images for multiple architectures (fixes #18).
docker build
is replaced bydocker buildx build
, which supports setting a--platform
parameter to set the architecture. In your case no cross-compilation is needed, since thedist/
folder you copy into the image is just javascript and therefore platform independent. The base imagenginx:alpine
is already a multi-arch image, so in the end buildx will just switch out the base image with the one for the specific architecture.