Skip to content

Commit

Permalink
Merge pull request #715 from alicefr/other-arch
Browse files Browse the repository at this point in the history
Set GOARCH to amd64 for darwin/windows building stage
  • Loading branch information
tonistiigi authored Nov 8, 2018
2 parents c3a857e + a008ce3 commit e00566d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/dockerfiles/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ RUN go build -ldflags "$(cat .tmp/ldflags) -d" -o /usr/bin/buildctl ./cmd/buildc
FROM buildkit-base AS buildctl-darwin
ENV CGO_ENABLED=0
ENV GOOS=darwin
ENV GOARCH=amd64
RUN go build -ldflags "$(cat .tmp/ldflags)" -o /out/buildctl-darwin ./cmd/buildctl
# reset GOOS for legacy builder
ENV GOOS=linux
Expand Down Expand Up @@ -110,6 +111,7 @@ COPY --from=rootlesskit /rootlesskit /usr/bin/

FROM buildkit-base AS cross-windows
ENV GOOS=windows
ENV GOARCH=amd64

FROM cross-windows AS buildctl.exe
RUN go build -ldflags "$(cat .tmp/ldflags)" -o /out/buildctl.exe ./cmd/buildctl
Expand Down

0 comments on commit e00566d

Please sign in to comment.