From e529acb41536868e8f83b58b08a054e617fe5ce4 Mon Sep 17 00:00:00 2001 From: Rishabh Rao Date: Tue, 20 Mar 2018 13:58:16 -0700 Subject: [PATCH] Use descriptive options for better readability (#25) --- builder/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/builder/Dockerfile b/builder/Dockerfile index 80d32ab..f744a1e 100644 --- a/builder/Dockerfile +++ b/builder/Dockerfile @@ -33,9 +33,10 @@ COPY entrypoint.sh / RUN chmod +x /entrypoint.sh # Add a chrome user and setup home dir. -RUN groupadd -r chrome && useradd -r -m -g chrome -G audio,video chrome && \ - mkdir -p /home/chrome/reports && \ - chown -R chrome:chrome /home/chrome +RUN groupadd --system chrome && \ + useradd --system --create-home --gid chrome --groups audio,video chrome && \ + mkdir --parents /home/chrome/reports && \ + chown --recursive chrome:chrome /home/chrome USER chrome