From a753a14316b85f94418c86f8331e6d21e4f30957 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 29 Oct 2021 12:51:10 +0200 Subject: [PATCH] Dockerfile: Drop world-write permission from /kas folder The github CI environment causes the copied /kas folder to become world-writable. This is at least undesired, so fix up the permissions. This is done the classic way, i.e. via a separate chmod, rather than using the new and not yet widely available "COPY --chmod". Signed-off-by: Jan Kiszka --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index bdc7565..2c3322e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,8 @@ RUN apt-get install --no-install-recommends -y \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* COPY . /kas +RUN chmod -R o-w /kas + RUN pip3 --proxy=$https_proxy install --no-deps kconfiglib && \ pip3 --proxy=$https_proxy install --no-deps /kas && kas --help