Skip to content

Add multiarch support to docker container, fixes pleroma-docker-compose#2

Guy Sheffer requested to merge guysoft/pleroma:buildx-multiarch-arm32v7 into develop

Hey, This commit is a solution to multi arch docker containers, it uses Moby BuildKit (Docker buildx). This lets you build for any list of platforms you want using --platform linux/amd64,linux/arm/v7. I choose to add linux/arm/v7 because its the official arch of the userspace on the Pi, and I am planning to build a distro using CustomPiOS, but you can add any other arches you want. This solves: pleroma-docker-compose#2 (closed)

In order to test that this indeed works, I have another branch where I changed the CI/CD to build the Docker container when not in the develop branch, you can see the build result here: https://git.pleroma.social/guysoft/pleroma/-/jobs/138074 The tree for that: https://git.pleroma.social/guysoft/pleroma/-/commits/buildx

Enjoy,

Merge request reports