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 871d925 commit 947dbc0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/taiko-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ WORKDIR /build/packages/taiko-client
RUN echo "TARGETOS=${TARGETOS}, TARGETARCH=${TARGETARCH}" && \
if [ "$TARGETARCH" = "amd64" ]; then \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build; \
elseif [ "$TARGETARCH" = "arm64" ] \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build; \
else \
GOOS=linux GOARCH=arm64 make build; \
echo "Unsupported architecture, ${TARGETOS}/${TARGETARCH}"; \
fi

FROM alpine:latest
FROM --platform=$BUILDPLATFORM alpine:latest

RUN apk add --no-cache ca-certificates libstdc++

Expand Down

0 comments on commit 947dbc0

Please sign in to comment.