From 4bc58a0927631c4e3c328b4a185fe8829309eb7d Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Tue, 9 Apr 2019 11:59:56 +0200 Subject: [PATCH] Creathe the user at build time --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 831702b..1a2d53e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,8 @@ RUN rm -f /import-seafile-apt-key.sh ENV UNAME=seafuser ENV UID=1000 ENV GID=1000 +RUN groupadd -g $GID -o $UNAME ;\ + useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME USER $UNAME ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] \ No newline at end of file