From cede544c2e617b3436a23ebf6b2ca261a23a038e Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sat, 12 Dec 2020 15:46:56 +0800 Subject: [PATCH] Simplify .ssh directory setup process in Dockerfile --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e6b713..3b49af9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -76,9 +76,7 @@ RUN pacman -Syu --noconfirm \ && chown arch:arch /home/arch # allow ssh to container -WORKDIR /root -RUN mkdir .ssh \ - && chmod 700 .ssh +RUN mkdir -m 700 /root/.ssh WORKDIR /root/.ssh RUN touch authorized_keys \