From 6f714572a7e75d86698aade4452ca3d7cce8ef14 Mon Sep 17 00:00:00 2001 From: Sergey Zharkov Date: Mon, 24 Jun 2019 09:12:56 +0300 Subject: [PATCH] Update Dockerfile --- docker/python/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/python/Dockerfile b/docker/python/Dockerfile index f4000c4..ae31c8d 100644 --- a/docker/python/Dockerfile +++ b/docker/python/Dockerfile @@ -25,6 +25,10 @@ ARG HOST_USER=manga-user ARG HOST_GROUP=manga-group ARG HOME='/home/manga' +RUN groupadd -g $HOST_GID $HOST_GROUP \ + && groupadd sudonopswd \ + && useradd -m -l -g $HOST_GROUP -u $HOST_UID $HOST_USER + RUN mkdir $HOME -p; \ chown $HOST_USER:$HOST_GROUP $HOME @@ -142,10 +146,6 @@ RUN set -ex; \ \) -exec rm -rf '{}' +; \ rm -f get-pip.py -RUN groupadd -g $HOST_GID $HOST_GROUP \ - && groupadd sudonopswd \ - && useradd -m -l -g $HOST_GROUP -u $HOST_UID $HOST_USER - USER $HOST_USER WORKDIR $HOME