mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Add /tmp/results directory with nonroot ownership
Signed-off-by: Wilson Husin <whusin@vmware.com>
This commit is contained in:
parent
4fafd1afef
commit
3d281e952c
@ -15,9 +15,13 @@
|
|||||||
ARG BASEIMAGE
|
ARG BASEIMAGE
|
||||||
|
|
||||||
FROM gcr.io/k8s-staging-build-image/debian-base:v2.1.3 as base
|
FROM gcr.io/k8s-staging-build-image/debian-base:v2.1.3 as base
|
||||||
|
RUN mkdir /tmp/results \
|
||||||
|
&& chown 65532 /tmp/results # Distroless nonroot UID
|
||||||
|
|
||||||
FROM ${BASEIMAGE}
|
FROM ${BASEIMAGE}
|
||||||
|
|
||||||
|
COPY --from=base /tmp/results /tmp
|
||||||
|
|
||||||
# This is a dependency for `kubectl diff` tests
|
# This is a dependency for `kubectl diff` tests
|
||||||
COPY --from=base /usr/bin/diff /usr/local/bin/
|
COPY --from=base /usr/bin/diff /usr/local/bin/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user