From 6ec12c113dc33c67e02375929699dbe3da424e65 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 28 Nov 2020 01:43:44 +0300 Subject: build: do not add new user --- Dockerfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index f0c3df9..cf9e7f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,16 +18,7 @@ WORKDIR /app COPY package*.json ./ -RUN npm install \ - # Add user so we don't need --no-sandbox. - # same layer as npm install to keep re-chowned files from using up several hundred MBs more space - && groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser \ - && mkdir -p /home/pptruser/Downloads \ - && chown -R pptruser:pptruser /home/pptruser \ - && chown -R pptruser:pptruser /app/node_modules - -# Run everything after as non-privileged user. -USER pptruser +RUN npm install COPY . . -- cgit v1.2.3