diff options
-rw-r--r-- | Dockerfile | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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 . . |