From 49459eb3752083371e1b42034f20287babbb4ebf Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 11 Jan 2023 00:09:43 +0100 Subject: [PATCH] add basic user --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 96feeb2..f34bde9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,10 @@ FROM archlinux:latest USER root +RUN useradd -g users -m -s /bin/bash jenkins + +RUN usermod -a -G audio,video,disk,storage jenkins + # update system RUN pacman -Syu --noconfirm \ && \ @@ -42,6 +46,8 @@ RUN pip install \ ENV PATH /tmp/node_modules/.bin:$PATH +USER jenkins + WORKDIR /workspace/ CMD ["/usr/bin/sleep", "5121512"]