Files
moby/cmd/dockerd/winresources/Dockerfile
2025-06-26 17:03:32 +02:00

20 lines
583 B
Docker

# syntax=docker/dockerfile:1
ARG DEBIAN_VERSION=bookworm
ARG XX_VERSION=1.6.1
# xx is a helper for cross-compilation
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
FROM --platform=$BUILDPLATFORM debian:${DEBIAN_VERSION}-slim AS build
COPY --link --from=xx / /
ARG TARGETPLATFORM
RUN apt-get update && xx-apt-get --no-install-recommends install -y binutils
WORKDIR /out
RUN --mount=type=bind,target=/winresources \
x86_64-w64-mingw32-windmc -v /winresources/event_messages.mc \
&& mv MSG00001.bin event_messages.bin
FROM scratch
COPY --from=build /out /