Merge pull request #476 from yui-knk/fix_warning
Fix "cat: can't open '.tmp/ldflags': No such file or directory" errorsdocker-18.09
commit
b0c2236fc5
|
@ -81,10 +81,8 @@ COPY --from=buildctl /usr/bin/buildctl /usr/bin/
|
||||||
COPY --from=buildkitd /usr/bin/buildkitd /usr/bin
|
COPY --from=buildkitd /usr/bin/buildkitd /usr/bin
|
||||||
COPY --from=registry /bin/registry /usr/bin
|
COPY --from=registry /bin/registry /usr/bin
|
||||||
|
|
||||||
FROM gobuild-base AS cross-windows
|
FROM buildkit-base AS cross-windows
|
||||||
ENV GOOS=windows
|
ENV GOOS=windows
|
||||||
WORKDIR /go/src/github.com/moby/buildkit
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
FROM cross-windows AS buildctl.exe
|
FROM cross-windows AS buildctl.exe
|
||||||
RUN go build -ldflags "$(cat .tmp/ldflags)" -o /buildctl.exe ./cmd/buildctl
|
RUN go build -ldflags "$(cat .tmp/ldflags)" -o /buildctl.exe ./cmd/buildctl
|
||||||
|
|
Loading…
Reference in New Issue