Skip to content
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
5 changes: 5 additions & 0 deletions Dockerfile.art
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ WORKDIR /opt/app-root/src

RUN make build-offline

# Strip binary to reduce image size for DaemonSet deployment
# Equivalent to Go's -ldflags '-s -w' for Rust binaries
# See: https://github.com/openshift/enhancements/pull/2021
RUN strip --strip-all /opt/app-root/src/target/release/vector

RUN cp /opt/app-root/src/target/release/vector /usr/bin

FROM registry.access.redhat.com/ubi9/ubi-minimal
Expand Down