From 31f770d467c2e92c2f0e2ae0c7c303870f025546 Mon Sep 17 00:00:00 2001 From: Davide Bortolami Date: Tue, 10 Mar 2020 00:00:46 +0000 Subject: [PATCH] UID GID 1000 --- build/bench/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/bench/Dockerfile b/build/bench/Dockerfile index 39fbabea..04375ab8 100644 --- a/build/bench/Dockerfile +++ b/build/bench/Dockerfile @@ -53,8 +53,9 @@ RUN install_packages \ RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.stretch_amd64.deb RUN dpkg -i wkhtmltox_0.12.5-1.stretch_amd64.deb && rm wkhtmltox_0.12.5-1.stretch_amd64.deb -# Create new user with directory, add user to sudo group, allow passwordless sudo, switch to that user and change directory to user home directory -RUN useradd --no-log-init -r -m -g sudo frappe +# Create new user with home directory, improve docker compatibility with UID/GID 1000, add user to sudo group, allow passwordless sudo, switch to that user and change directory to user home directory +RUN groupadd -g 1000 frappe +RUN useradd --no-log-init -r -m -u 1000 -g 1000 -G sudo frappe RUN echo "frappe ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers USER frappe WORKDIR /home/frappe