From e83f95feb4e823101995b6fc9df43b1bc7b149ee Mon Sep 17 00:00:00 2001 From: Tarak Ben Youssef Date: Wed, 10 Jan 2024 22:16:24 +0100 Subject: [PATCH] fix arm arch name --- cmd/emulator/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/emulator/Dockerfile b/cmd/emulator/Dockerfile index 81ded84e..4fd4f46b 100644 --- a/cmd/emulator/Dockerfile +++ b/cmd/emulator/Dockerfile @@ -13,14 +13,14 @@ WORKDIR /app RUN mkdir -p /root/.ssh && ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts RUN git config --global 'url.ssh://git@github.com/.insteadOf' https://github.com/ RUN apt-get update -RUN apt-get -y install gcc-arm-linux-gnueabi +RUN apt-get -y install apt-utils gcc-arm-linux-gnueabi COPY . . ARG TARGETOS ARG TARGETARCH ARG C_COMPILER -RUN if [ "$TARGETARCH" = "arm" ] ; then C_COMPILER="arm-linux-gnueabi-gcc" ; else C_COMPILER="gcc" ; fi +RUN if [ "$TARGETARCH" = "arm64" ] ; then C_COMPILER="arm-linux-gnueabi-gcc" ; else C_COMPILER="gcc" ; fi RUN --mount=type=ssh \ --mount=type=cache,target=/go/pkg/mod \