Skip to content

Commit f149fed

Browse files
authored
Merge pull request #328 from APIParkLab/feature/liujian-1.8
Fix the issue of failed compilation of ARM images
2 parents 3cab3c1 + 972f072 commit f149fed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/docker_build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ VERSION=$(gen_version)
2929

3030

3131
SYS_ARCH=$(arch)
32+
echo "SYS_ARCH: ${SYS_ARCH}"
33+
echo "ARCH: ${ARCH}"
3234
if [[ (${SYS_ARCH} == "aarch64" || ${SYS_ARCH} == "arm64") && $ARCH == "amd64" ]];then
3335
OPTIONS="--platform=linux/amd64"
34-
elif [[ ${SYS_ARCH} == "amd64" && $ARCH == "arm64" ]];then
36+
elif [[ (${SYS_ARCH} == "amd64" || ${SYS_ARCH} == "x86_64") && $ARCH == "arm64" ]];then
3537
OPTIONS="--platform=linux/arm64"
3638
fi
3739

0 commit comments

Comments
 (0)