From 92a2f1bea5aaa945bea54b5dec007467392f6fa7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 19 Mar 2023 21:23:32 +0100 Subject: [PATCH] Download toolchain for the local platform as well --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c699bc6..2dc1cae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,13 @@ RUN apt-get update && \ apt-get upgrade --assume-yes RUN \ - if [ ${TARGETPLATFORM} = "linux/amd64" ]; then \ + if [ ${BUILDPLATFORM} = "linux/amd64" ] || [ ${TARGETPLATFORM} = "linux/amd64" ]; then \ apt-get install --assume-yes gcc-x86-64-linux-gnu; \ fi && \ - if [ ${TARGETPLATFORM} = "linux/arm64" ]; then \ + if [ ${BUILDPLATFORM} = "linux/arm64" ] || [ ${TARGETPLATFORM} = "linux/arm64" ]; then \ apt-get install --assume-yes gcc-aarch64-linux-gnu; \ fi && \ - if [ ${TARGETPLATFORM} = "linux/arm/v7" ]; then \ + if [ ${BUILDPLATFORM} = "linux/arm/v7" ] || [ ${TARGETPLATFORM} = "linux/arm/v7" ]; then \ apt-get install --assume-yes gcc-arm-linux-gnueabihf; \ fi