mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 17:37:46 +08:00
dockerfile: unfork cli
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
7339f85248
commit
bffca0b271
20
Dockerfile
20
Dockerfile
@ -32,15 +32,15 @@ RUN --mount=target=. --mount=target=/root/.cache,type=cache \
|
|||||||
FROM buildx-build AS integration-tests
|
FROM buildx-build AS integration-tests
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
FROM golang:1.12-alpine AS docker-cli-build
|
# FROM golang:1.12-alpine AS docker-cli-build
|
||||||
RUN apk add -U git bash coreutils gcc musl-dev
|
# RUN apk add -U git bash coreutils gcc musl-dev
|
||||||
ENV CGO_ENABLED=0
|
# ENV CGO_ENABLED=0
|
||||||
ARG REPO=github.com/tiborvass/cli
|
# ARG REPO=github.com/tiborvass/cli
|
||||||
ARG BRANCH=cli-plugin-aliases
|
# ARG BRANCH=cli-plugin-aliases
|
||||||
ARG CLI_VERSION
|
# ARG CLI_VERSION
|
||||||
WORKDIR /go/src/github.com/docker/cli
|
# WORKDIR /go/src/github.com/docker/cli
|
||||||
RUN git clone git://$REPO . && git checkout $BRANCH
|
# RUN git clone git://$REPO . && git checkout $BRANCH
|
||||||
RUN ./scripts/build/binary
|
# RUN ./scripts/build/binary
|
||||||
|
|
||||||
FROM scratch AS binaries-unix
|
FROM scratch AS binaries-unix
|
||||||
COPY --from=buildx-build /usr/bin/buildx /
|
COPY --from=buildx-build /usr/bin/buildx /
|
||||||
@ -69,7 +69,7 @@ RUN mkdir -p /usr/local/lib/docker/cli-plugins && ln -s /usr/local/bin/buildx /u
|
|||||||
COPY ./hack/demo-env/entrypoint.sh /usr/local/bin
|
COPY ./hack/demo-env/entrypoint.sh /usr/local/bin
|
||||||
COPY ./hack/demo-env/tmux.conf /root/.tmux.conf
|
COPY ./hack/demo-env/tmux.conf /root/.tmux.conf
|
||||||
COPY --from=dockerd-release /usr/local/bin /usr/local/bin
|
COPY --from=dockerd-release /usr/local/bin /usr/local/bin
|
||||||
COPY --from=docker-cli-build /go/src/github.com/docker/cli/build/docker /usr/local/bin
|
#COPY --from=docker-cli-build /go/src/github.com/docker/cli/build/docker /usr/local/bin
|
||||||
|
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
COPY ./hack/demo-env/examples .
|
COPY ./hack/demo-env/examples .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user