File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,16 @@ this_dir="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
28
28
29
29
case " $ARCH " in
30
30
x86_64)
31
- docker_arch= amd64
31
+ docker_platform=linux/ amd64
32
32
;;
33
33
i386)
34
- docker_arch=i386
34
+ docker_platform=linux/386
35
35
;;
36
36
armhf)
37
- docker_arch=arm32v7
37
+ docker_platform=linux/arm/v7
38
38
;;
39
39
aarch64)
40
- docker_arch=arm64v8
40
+ docker_platform=linux/arm64/v8
41
41
;;
42
42
* )
43
43
echo " Unsupported \$ ARCH: $ARCH "
48
48
# first, we need to build the image
49
49
# we always attempt to build it, it will only be rebuilt if Docker detects changes
50
50
# optionally, we'll pull the base image beforehand
51
- info " Building Docker image for $ARCH (Docker arch : $docker_arch )"
51
+ info " Building Docker image for $ARCH (Docker platform : $docker_platform )"
52
52
53
53
build_args=()
54
54
if [[ " ${UPDATE:- } " == " " ]]; then
57
57
build_args+=(" --pull" )
58
58
fi
59
59
60
- image_tag=" linuxdeploy-build: $ARCH "
60
+ image_tag=" linuxdeploy-build"
61
61
62
62
docker build \
63
63
--build-arg ARCH=" $ARCH " \
64
- --build-arg docker_arch= " $docker_arch " \
64
+ --platform " $docker_platform " \
65
65
" ${build_args[@]} " \
66
66
-t " $image_tag " \
67
67
" $this_dir " /docker
Original file line number Diff line number Diff line change 3
3
# needs to be re-run in CI every time as we cannot store auto-built Docker images due to GitHub's strict quota
4
4
# it will save a lot of time in local development environments, though
5
5
6
- ARG docker_arch
7
-
8
6
# we'll just use Debian as a base image for now, mainly because it produces less headache than Ubuntu with arm
9
7
# a big pro is that they ship an up to date CMake in their stable distribution
10
8
# also, they still provide IA-32 builds for some reason...
11
9
# some people in the AppImage community do not (want to) realize i386 is dead for good
12
10
# we are going to drop i686 in the future!
13
- FROM ${docker_arch}/ debian:stable
11
+ FROM debian:stable
14
12
15
13
# variables that need to be availabe during build and runtime must(!) be repeated after FROM
16
14
ARG ARCH
You can’t perform that action at this time.
0 commit comments