Skip to content

Commit

Permalink
clean dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbreno committed Oct 25, 2024
1 parent 5e2ee94 commit ea2cf91
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,18 @@ RUN mv CalicoWindows/cni/calico.exe rancher/
RUN mv CalicoWindows/cni/calico-ipam.exe rancher/
RUN mv CalicoWindows/confd confd/

# New stage to create clean directory structure
FROM alpine:3.20 AS directory-setup
RUN mkdir -p /clean/bin /clean/bin/confd /clean/charts

FROM scratch AS windows-runtime

LABEL org.opencontainers.image.url="https://hub.docker.com/r/rancher/rke2-runtime"
LABEL org.opencontainers.image.source="https://github.com/rancher/rke2"

# First copy the clean directory structure
COPY --from=directory-setup /clean/ /

# Copy files - directories will be created automatically
COPY --from=containerd /usr/local/bin/*.exe /bin/
COPY --from=windows-runtime-collect ./rancher/* /bin/
Expand Down

0 comments on commit ea2cf91

Please sign in to comment.