File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1- ARG docker_arch
2- FROM ${docker_arch}/alpine:3.20
1+ FROM alpine:3.20
32
43# includes dependencies from https://git.alpinelinux.org/aports/tree/main/fuse3/APKBUILD
54RUN apk add --no-cache \
Original file line number Diff line number Diff line change 1212# guess architecture name compatible with Docker from $ARCH
1313case " ${ARCH} " in
1414 x86_64)
15- docker_arch=amd64
1615 docker_platform=linux/amd64
1716 ;;
1817 i686)
19- docker_arch=i386
2018 docker_platform=linux/i386
2119 ;;
2220 armhf)
23- docker_arch=arm32v7
2421 docker_platform=linux/arm/v7
2522 ;;
2623 aarch64)
27- docker_arch=arm64v8
2824 docker_platform=linux/arm64/v8
2925 ;;
3026 * )
@@ -33,12 +29,12 @@ case "${ARCH}" in
3329 ;;
3430esac
3531
36- image_name=" $docker_arch " / type2-runtime-build
32+ image_name=type2-runtime-build
3733
3834# first, we need to build the image
3935# if nothing has changed, it'll run over this within a few seconds
4036repo_root_dir=" $( readlink -f " $( dirname " ${BASH_SOURCE[0]} " ) " ) " /../../
41- docker build --build-arg docker_arch= " $docker_arch " -- platform " $docker_platform " -t " $image_name " -f " $repo_root_dir " /scripts/docker/Dockerfile " $repo_root_dir "
37+ docker build --platform " $docker_platform " -t " $image_name " -f " $repo_root_dir " /scripts/docker/Dockerfile " $repo_root_dir "
4238
4339docker_run_args=()
4440[[ -t 0 ]] && docker_run_args+=(" -t" )
You can’t perform that action at this time.
0 commit comments