Skip to content

Commit

Permalink
Force --platform=linux/amd64 in Dockerfile (kivy#2660)
Browse files Browse the repository at this point in the history
  • Loading branch information
misl6 authored and ShyamQt committed Feb 17, 2023
1 parent b174a2f commit 7168dac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
# Use 'docker run' without '--rm' flag for keeping the container and use
# 'docker commit <container hash> <new image>' to extend the original image

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

# configure locale
RUN apt -y update -qq > /dev/null \
Expand Down

0 comments on commit 7168dac

Please sign in to comment.