mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-18 18:28:18 -05:00
ensure permissions are consistent on dockerized binaries
This commit is contained in:
parent
4885c6d462
commit
26cba8ee03
3 changed files with 3 additions and 3 deletions
|
|
@ -19,4 +19,4 @@ ARG BINARY
|
|||
|
||||
|
||||
FROM "${BASEIMAGE}"
|
||||
COPY ${BINARY} /usr/local/bin/${BINARY}
|
||||
COPY --chmod=755 ${BINARY} /usr/local/bin/${BINARY}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ ARG SETCAP_IMAGE
|
|||
# to setup qemu for the builder.
|
||||
FROM --platform=linux/$BUILDARCH ${SETCAP_IMAGE}
|
||||
ARG BINARY
|
||||
COPY ${BINARY} /${BINARY}
|
||||
COPY --chmod=755 ${BINARY} /${BINARY}
|
||||
# We apply cap_net_bind_service so that kube-apiserver can be run as
|
||||
# non-root and still listen on port less than 1024
|
||||
RUN setcap cap_net_bind_service=+ep /${BINARY}
|
||||
|
|
|
|||
|
|
@ -19,5 +19,5 @@ ARG BINARY
|
|||
|
||||
|
||||
FROM "${BASEIMAGE}"
|
||||
COPY ${BINARY} /bin/
|
||||
COPY --chmod=755 ${BINARY} /bin/
|
||||
ENTRYPOINT ["/bin/kubectl"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue