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 80de6c6 commit ba883fb
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
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM golang:1.21-alpine AS builder
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS builder
ARG TARGETOS
ARG TARGETARCH

Expand All @@ -13,6 +13,8 @@ COPY packages/taiko-client/ packages/taiko-client/
WORKDIR /build/packages/taiko-client
RUN if [ "$TARGETARCH" == "amd64" ]; then \
echo "amd64: TARGETOS=${TARGETOS}, TARGETARCH=${TARGETARCH}"; \
GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" \
echo "amd64: GOOS=${GOOS}, GOARCH=${TARGETARCH}"; \
else \
echo "arm64: TARGETOS=${TARGETOS}, TARGETARCH=${TARGETARCH}"; \
GOOS="${TARGETOS}" GOARCH="${TARGETARCH}" \
Expand Down

0 comments on commit ba883fb

Please sign in to comment.