diff options
author | eug-vs <eug-vs@keemail.me> | 2020-11-28 01:43:44 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-11-28 01:43:44 +0300 |
commit | 6ec12c113dc33c67e02375929699dbe3da424e65 (patch) | |
tree | 51f0d39283f0e092922580b19295963a921cdfdf /Dockerfile | |
parent | 1debf66cde02c86c277286331c837822fac24e3e (diff) | |
download | bsu-fantom-6ec12c113dc33c67e02375929699dbe3da424e65.tar.gz |
build: do not add new user
Diffstat (limited to 'Dockerfile')
-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 . . |