This repository was archived by the owner on Sep 26, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1+ FROM dockercore/golang-cross:latest as cli_build
2+
3+ ARG DOCKER_VERSION
4+ ARG DOCKER_CLI_COMMIT
5+ RUN mkdir -p /go/src/github.com/docker/cli
6+ WORKDIR /go/src/github.com/docker/cli
7+ RUN git clone https://github.com/docker/cli.git . && git checkout $DOCKER_CLI_COMMIT
8+ RUN VERSION=$DOCKER_VERSION ./scripts/build/windows
9+
110FROM debian:jessie
211
312ENV DEBIAN_FRONTEND noninteractive
@@ -32,10 +41,7 @@ RUN mkdir /bundle
3241
3342WORKDIR /bundle
3443
35- RUN curl -fsSL -o dockerbins.zip "https://download.docker.com/win/static/${DOCKER_RELEASE_STAGE}/x86_64/docker-${DOCKER_VERSION}.zip" && \
36- unzip dockerbins.zip && \
37- mv docker/docker.exe . && \
38- rm -r docker/ dockerbins.zip
44+ COPY --from=cli_build /go/src/github.com/docker/cli/build/docker-windows-amd64 ./docker.exe
3945
4046RUN curl -fsSL -o docker-machine.exe "https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-Windows-x86_64.exe"
4147
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ docker build \
99 --build-arg DOCKER_RELEASE_STAGE=" ${DOCKER_RELEASE_STAGE} " \
1010 --build-arg INSTALLER_VERSION=" ${INSTALLER_VERSION} " \
1111 --build-arg DOCKER_VERSION=" ${DOCKER_VERSION} " \
12+ --build-arg DOCKER_CLI_COMMIT=" ${DOCKER_CLI_COMMIT} " \
1213 --build-arg DOCKER_COMPOSE_VERSION=" ${DOCKER_COMPOSE_VERSION} " \
1314 --build-arg DOCKER_MACHINE_VERSION=" ${DOCKER_MACHINE_VERSION} " \
1415 --build-arg KITEMATIC_VERSION=" ${KITEMATIC_VERSION} " \
Original file line number Diff line number Diff line change 11DOCKER_RELEASE_STAGE=stable
22INSTALLER_VERSION=17.12.0-ce
33DOCKER_VERSION=17.12.0-ce
4+ DOCKER_CLI_COMMIT=ace5417954ec908d862d59e992c8d77685366eab
45DOCKER_COMPOSE_VERSION=1.18.0
56DOCKER_MACHINE_VERSION=0.13.0
67KITEMATIC_VERSION=0.17.2
You can’t perform that action at this time.
0 commit comments