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 947dbc0 commit 18c5d01
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/taiko-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ COPY go.mod go.sum ./
COPY packages/taiko-client/ packages/taiko-client/

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; \
RUN echo "TARGETOS=$TARGETOS, TARGETARCH=$TARGETARCH" && \
if [ $TARGETARCH == 'amd64' ]; then \
GOOS=$TARGETOS GOARCH=$TARGETARCH make build; \
elif [ $TARGETARCH == 'arm64' ] \
GOOS=$TARGETOS GOARCH=$TARGETARCH make build; \
else \
echo "Unsupported architecture, ${TARGETOS}/${TARGETARCH}"; \
fi

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

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

Expand Down

0 comments on commit 18c5d01

Please sign in to comment.