Browse Source

MOAR edits

encrypt 7 years ago
parent
commit
f3cbd85d18
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Dockerfile

+ 8 - 0
Dockerfile

@@ -7,8 +7,16 @@ RUN apk add nodejs
 COPY ["client", "/app/client"]
 COPY ["server", "/app/server"]
 
+RUN addgroup -S up1 && adduser -S up1 -G up1
+
+RUN chown -R up1:up1 /app
+
+USER up1
+
 WORKDIR "/app/server"
 
 RUN npm install
 
+VOLUME ["/app/i"]
+
 CMD node server.js