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-
10- FROM debian:jessie
1+ FROM dockercore/golang-cross:latest
112
123ENV DEBIAN_FRONTEND noninteractive
134
145ARG DOCKER_RELEASE_STAGE
156ARG INSTALLER_VERSION
167ARG DOCKER_VERSION
8+ ARG DOCKER_CLI_COMMIT
179ARG DOCKER_COMPOSE_VERSION
1810ARG DOCKER_MACHINE_VERSION
1911ARG KITEMATIC_VERSION
2012ARG VBOX_VERSION
2113ARG VBOX_REV
2214ARG MIXPANEL_TOKEN
2315
16+ RUN mkdir -p /go/src/github.com/docker/cli
17+ WORKDIR /go/src/github.com/docker/cli
18+ RUN git clone https://github.com/docker/cli.git . && git checkout $DOCKER_CLI_COMMIT
19+ RUN VERSION=$DOCKER_VERSION ./scripts/build/windows
20+
2421RUN dpkg --add-architecture i386
25- RUN sed -i "s/main/main contrib non-free/" etc/apt/sources.list
22+ RUN sed -i "s/main/main contrib non-free/" / etc/apt/sources.list
2623RUN apt-get update && apt-get install -yq wine curl unrar unzip
2724
2825# innosetup
29- RUN mkdir innosetup && \
30- cd innosetup && \
26+ RUN mkdir / innosetup && \
27+ cd / innosetup && \
3128 curl -fsSL -o innounp045.rar "https://downloads.sourceforge.net/project/innounp/innounp/innounp%200.45/innounp045.rar?r=&ts=1439566551&use_mirror=skylineservers" && \
3229 unrar e innounp045.rar
3330
34- RUN cd innosetup && \
31+ RUN cd / innosetup && \
3532 curl -fsSL -o is-unicode.exe http://files.jrsoftware.org/is/5/isetup-5.5.8-unicode.exe && \
3633 wine "./innounp.exe" -e "is-unicode.exe"
3734
@@ -41,7 +38,7 @@ RUN mkdir /bundle
4138
4239WORKDIR /bundle
4340
44- COPY --from=cli_build /go/src/github.com/docker/cli/build/docker-windows-amd64 ./ docker.exe
41+ RUN cp /go/src/github.com/docker/cli/build/docker-windows-amd64 docker.exe
4542
4643RUN curl -fsSL -o docker-machine.exe "https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-Windows-x86_64.exe"
4744
0 commit comments