Skip to content

Commit

Permalink
add env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben Youssef committed Jan 16, 2024
1 parent 4bb23ef commit 7ffb0cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/emulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ COPY . .

ARG TARGETOS
ARG TARGETARCH
ENV C_COMPILER=""
RUN if [ "$TARGETARCH" = "arm64" ] ; then \
export C_COMPILER=aarch64-linux-gnu-gcc ; \
C_COMPILER=aarch64-linux-gnu-gcc ; \
elif [ "$TARGETARCH" = "amd64" ] ; then \
export C_COMPILER=x86_64-linux-gnu-gcc ; \
C_COMPILER=x86_64-linux-gnu-gcc ; \
fi

RUN --mount=type=ssh \
Expand Down

0 comments on commit 7ffb0cc

Please # to comment.