Skip to content

Commit 9edef54

Browse files
fix(agent): correct setpriv binary path in Dockerfile
The setpriv utility was being copied from /bin/setpriv in the builder stage but placed in /usr/bin/ in the final scratch image. This caused shell execution to fail as it couldn't find setpriv at runtime.
1 parent 74408df commit 9edef54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
7777

7878
# Copy required utilities
7979
COPY --from=builder /usr/bin/nsenter /usr/bin/
80-
COPY --from=builder /bin/setpriv /usr/bin/
80+
COPY --from=builder /bin/setpriv /bin/
8181

8282
# Copy shared libraries
8383
COPY --from=builder /usr/lib/libcap-ng.so.* /usr/lib/

0 commit comments

Comments
 (0)