Skip to content
This repository was archived by the owner on Sep 26, 2021. It is now read-only.

Commit b348334

Browse files
committed
Docker on CircleCI doesn't support muti-stage builds
Signed-off-by: Joffrey F <[email protected]>
1 parent ef056f0 commit b348334

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

Dockerfile.windows

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
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

123
ENV DEBIAN_FRONTEND noninteractive
134

145
ARG DOCKER_RELEASE_STAGE
156
ARG INSTALLER_VERSION
167
ARG DOCKER_VERSION
8+
ARG DOCKER_CLI_COMMIT
179
ARG DOCKER_COMPOSE_VERSION
1810
ARG DOCKER_MACHINE_VERSION
1911
ARG KITEMATIC_VERSION
2012
ARG VBOX_VERSION
2113
ARG VBOX_REV
2214
ARG 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+
2421
RUN 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
2623
RUN 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

4239
WORKDIR /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

4643
RUN 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

Comments
 (0)