docker: Build with musl instead of glibc

This commit is contained in:
Quentin Gliech
2022-12-16 18:24:00 +01:00
parent 7807969b9b
commit 5b8f6885e6
2 changed files with 8 additions and 14 deletions

View File

@@ -5,16 +5,10 @@ if [ "$#" -ne 1 ]; then
exit 1
fi
if [ "$1" = "linux/arm64" -o "$1" = "linux/arm64/v8" ]; then
echo "aarch64-unknown-linux-gnu"
elif [ "$1" = "linux/arm" -o "$1" = "linux/arm/v7" ]; then
echo "armv7-unknown-linux-gnueabihf"
elif [ "$1" = "linux/arm/v6" ]; then
echo "arm-unknown-linux-gnueabihf"
if [ "$1" = "linux/arm64" ] || [ "$1" = "linux/arm64/v8" ]; then
echo "aarch64-unknown-linux-musl"
elif [ "$1" = "linux/amd64" ]; then
echo "x86_64-unknown-linux-gnu"
elif [ "$1" = "linux/i386" ]; then
echo "i686-unknown-linux-gnu"
echo "x86_64-unknown-linux-musl"
else
echo "unsupported platform $1" >&2
exit 2