Docker buildkit is required for multi-arch builds. Unless integrated in docker already, install it:
mkdir -p ~/.docker/cli-plugins
wget https://github.com/docker/buildx/releases/download/${version}/buildx-v{version}.linux-$arch -O ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker buildx create --use
Build and push the multi-arch image
export VERSION=1.ab.c
docker buildx build --platform linux/amd64 --platform linux/arm64 --push . -t damyanyordanov/minecraft-java:$VERSION -f Dockerfile-$VERSION
git clone [email protected]:damyan/minecraft.git mc
cd mc
# adjust image version, if changed
docker-compose up