Merge pull request #476 from yui-knk/fix_warning

Fix "cat: can't open '.tmp/ldflags': No such file or directory" errors
docker-18.09
Akihiro Suda 2018-07-01 00:01:46 +09:00 committed by GitHub
commit b0c2236fc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -81,10 +81,8 @@ COPY --from=buildctl /usr/bin/buildctl /usr/bin/
COPY --from=buildkitd /usr/bin/buildkitd /usr/bin
COPY --from=registry /bin/registry /usr/bin
FROM gobuild-base AS cross-windows
FROM buildkit-base AS cross-windows
ENV GOOS=windows
WORKDIR /go/src/github.com/moby/buildkit
COPY . .
FROM cross-windows AS buildctl.exe
RUN go build -ldflags "$(cat .tmp/ldflags)" -o /buildctl.exe ./cmd/buildctl