Skip to content

Commit cea7b2d

Browse files
authored
Force --platform=linux/amd64 in Dockerfile (kivy#2660)
1 parent 1f62452 commit cea7b2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
# Use 'docker run' without '--rm' flag for keeping the container and use
1616
# 'docker commit <container hash> <new image>' to extend the original image
1717

18-
FROM ubuntu:20.04
18+
# If platform is not specified, by default the target platform of the build request is used.
19+
# This is not what we want, as Google doesn't provide a linux/arm64 compatible NDK.
20+
# See: https://docs.docker.com/engine/reference/builder/#from
21+
FROM --platform=linux/amd64 ubuntu:20.04
1922

2023
# configure locale
2124
RUN apt -y update -qq > /dev/null \

0 commit comments

Comments
 (0)