summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-11-28 01:43:44 +0300
committereug-vs <eug-vs@keemail.me>2020-11-28 01:43:44 +0300
commit6ec12c113dc33c67e02375929699dbe3da424e65 (patch)
tree51f0d39283f0e092922580b19295963a921cdfdf /Dockerfile
parent1debf66cde02c86c277286331c837822fac24e3e (diff)
downloadbsu-fantom-6ec12c113dc33c67e02375929699dbe3da424e65.tar.gz
build: do not add new user
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 1 insertions, 10 deletions
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 . .