Skip to content

Commit

Permalink
fix arm arch name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben Youssef committed Jan 10, 2024
1 parent a342592 commit e83f95f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/emulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit e83f95f

Please # to comment.