Files
s-ui/docker-build-test.sh
2026-05-10 16:04:13 +08:00

16 lines
457 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 测试 Docker 多平台构建(linux/amd64、386、arm64、arm/v7、arm/v6
set -e
cd "$(dirname "$0")"
PLATFORMS="linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6"
echo "==> 正在测试 Docker 构建平台:$PLATFORMS"
docker buildx build \
--platform "$PLATFORMS" \
-f Dockerfile \
--progress=plain \
. 2>&1 | tee docker-build-test.log
echo "==> 完成。完整输出请查看 docker-build-test.log。"