Skip to content

Commit

Permalink
try cross-compile taiko-client
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Sep 25, 2024
1 parent 18c5d01 commit 62ed1f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taiko-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS builder
ARG TARGETOS
ARG TARGETARCH
FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS builder

RUN apk update && apk add --no-cache --update gcc musl-dev linux-headers git make build-base

Expand All @@ -14,7 +14,7 @@ WORKDIR /build/packages/taiko-client
RUN echo "TARGETOS=$TARGETOS, TARGETARCH=$TARGETARCH" && \
if [ $TARGETARCH == 'amd64' ]; then \
GOOS=$TARGETOS GOARCH=$TARGETARCH make build; \
elif [ $TARGETARCH == 'arm64' ] \
elif [ $TARGETARCH == 'arm64' ]; then \
GOOS=$TARGETOS GOARCH=$TARGETARCH make build; \
else \
echo "Unsupported architecture, ${TARGETOS}/${TARGETARCH}"; \
Expand Down

0 comments on commit 62ed1f6

Please sign in to comment.