[Docker] Add support for arm32/64 (#2104)

This commit is contained in:
Bockiii 2021-05-13 19:57:10 +02:00 committed by GitHub
parent e79a02ac2e
commit 3585575d68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 78 additions and 1 deletions

10
hooks/build Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# Custom build script to build images for all supported architectures.
# Example for IMAGE_NAME: rss-builder/rss-builder:stable
for arch in amd64 arm32v7 arm64v8
do
echo "Building $IMAGE_NAME-$arch"
docker build --build-arg FROM_ARCH=$arch --file $DOCKERFILE_PATH --tag $IMAGE_NAME-$arch .
done