Skip to content

Commit

Permalink
echo BUILDPLATFORM variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Sep 24, 2024
1 parent a3bda54 commit 7fac63d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/taiko-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ COPY packages/taiko-client/ packages/taiko-client/

WORKDIR /build/packages/taiko-client

RUN if [ "GOARCH" = "amd64" ]; then \
RUN echo "TARGETOS=${TARGETOS}, TARGETARCH=${TARGETARCH}" && \
if [ "$TARGETARCH" = "amd64" ]; then \
apt-get install -y g++-x86-64-linux-gnu libc6-dev-amd64-cross; \
CGO_ENABLED=1 CC=x86_64-linux-gnu-gcc GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build; \
else \
CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build; \
Expand Down

0 comments on commit 7fac63d

Please sign in to comment.