Skip to content

Commit b1b03b3

Browse files
committed
cli-bin/windows: Add .exe extension
Before this commit, the CLI binary in `dockereng/cli-bin` image was named `docker` regardless of platform. Change the binary name to `docker.exe` in Windows images. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com> (cherry picked from commit 718203d) Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
1 parent 57d2fbb commit b1b03b3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ COPY --link . .
123123
FROM scratch AS plugins
124124
COPY --from=build-plugins /out .
125125

126-
FROM scratch AS bin-image
126+
FROM scratch AS bin-image-linux
127127
COPY --from=build /out/docker /docker
128+
FROM scratch AS bin-image-darwin
129+
COPY --from=build /out/docker /docker
130+
FROM scratch AS bin-image-windows
131+
COPY --from=build /out/docker /docker.exe
132+
133+
FROM bin-image-${TARGETOS} AS bin-image
128134

129135
FROM scratch AS binary
130136
COPY --from=build /out .

0 commit comments

Comments
 (0)