Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Harmonized dockerfile target #527

Merged
merged 1 commit into from
May 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ENV LIB_DIR_PREFIX_MINUS aarch64


FROM busybox:1.36.1-uclibc as busybox
FROM distroless-$TARGETARCH as ceph-volume-provider
FROM distroless-$TARGETARCH as ceph-volume-provider-image
WORKDIR /
COPY --from=busybox /bin/sh /bin/sh
COPY --from=busybox /bin/mkdir /bin/mkdir
Expand Down Expand Up @@ -107,7 +107,7 @@ COPY --from=ceph-volume-provider-builder /workspace/bin/ceph-volume-provider /ce

# Build stage used for validation of the output-image
# See validate-container-linux-* targets in Makefile
FROM ceph-volume-provider as validation-image
FROM ceph-volume-provider-image as validation-image

COPY --from=busybox /usr/bin/ldd /usr/bin/find /usr/bin/xargs /usr/bin/
COPY --from=builder /workspace/hack/print-missing-deps.sh /print-missing-deps.sh
Expand All @@ -116,7 +116,7 @@ RUN /print-missing-deps.sh


# Final build stage, create the real Docker image with ENTRYPOINT
FROM ceph-volume-provider
FROM ceph-volume-provider-image as ceph-volume-provider
USER 65532:65532

ENTRYPOINT ["/ceph-volume-provider"]
Expand Down
Loading