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>
This commit is contained in:
Paweł Gronowski 2024-04-10 18:48:37 +02:00
parent 870ad7f4b9
commit 718203d50b
No known key found for this signature in database
GPG Key ID: B85EFCFE26DEF92A
1 changed files with 7 additions and 1 deletions

View File

@ -123,8 +123,14 @@ COPY --link . .
FROM scratch AS plugins FROM scratch AS plugins
COPY --from=build-plugins /out . COPY --from=build-plugins /out .
FROM scratch AS bin-image FROM scratch AS bin-image-linux
COPY --from=build /out/docker /docker COPY --from=build /out/docker /docker
FROM scratch AS bin-image-darwin
COPY --from=build /out/docker /docker
FROM scratch AS bin-image-windows
COPY --from=build /out/docker /docker.exe
FROM bin-image-${TARGETOS} AS bin-image
FROM scratch AS binary FROM scratch AS binary
COPY --from=build /out . COPY --from=build /out .