From cb5a551dd027ce4836b3ee14588b7de4ae7adbac Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Sun, 23 May 2021 22:29:42 +0800 Subject: [PATCH] Dockerfile.distroless: workaround the pkg dependency on "/tmp" --- distribution/containers/Dockerfile.distroless | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/distribution/containers/Dockerfile.distroless b/distribution/containers/Dockerfile.distroless index 8fd44a99..aa741558 100644 --- a/distribution/containers/Dockerfile.distroless +++ b/distribution/containers/Dockerfile.distroless @@ -22,6 +22,10 @@ RUN cp /sbin/tini-static /root/sysroot/bin/tini RUN chmod 0555 /root/sysroot/bin/* +# Create /tmp +RUN mkdir -p /root/sysroot/tmp +RUN chmod 1777 /root/sysroot/tmp + # Create 1001:1001 user RUN mkdir -p /root/sysroot/home/download RUN chown 1001:1001 /root/sysroot/home/download