From f9df51da1881110fda33d2642ddcc65547beef06 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 24 Jul 2023 20:50:01 +0530 Subject: [PATCH] fix: no need to copy ssh config into `.ssh` shell script already does that --- package/aur/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package/aur/Dockerfile b/package/aur/Dockerfile index d1ffeff..fae1c52 100644 --- a/package/aur/Dockerfile +++ b/package/aur/Dockerfile @@ -14,15 +14,13 @@ RUN useradd -m builder && \ RUN mkdir -p /home/builder/.ssh && \ touch /home/builder/.ssh/known_hosts -COPY . /home/builder/packaging_scripts - -RUN mv /home/builder/packaging_scripts/ssh_config /home/builder/.ssh/config - RUN chown -R builder:builder /home/builder/.ssh && \ chmod 600 /home/builder/.ssh/* -R && \ chown -R builder:builder /home/builder/packaging_scripts && \ chmod +x /home/builder/packaging_scripts/*.sh +COPY . /home/builder/packaging_scripts + USER builder WORKDIR /home/builder/packaging_scripts