Jonell01 commited on
Commit
3f4e271
·
verified ·
1 Parent(s): f24ad0a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -6,9 +6,13 @@ COPY testProjectExocoreWeb-main.zip .
6
 
7
  RUN apt-get update && apt-get install -y unzip && \
8
  unzip testProjectExocoreWeb-main.zip && \
9
- chmod -R 755 testProjectExocoreWeb-main && \
10
- cd testProjectExocoreWeb-main && npm install
 
 
11
 
12
  WORKDIR /app/testProjectExocoreWeb-main
13
 
 
 
14
  CMD ["npm", "start"]
 
6
 
7
  RUN apt-get update && apt-get install -y unzip && \
8
  unzip testProjectExocoreWeb-main.zip && \
9
+ chown -R node:node testProjectExocoreWeb-main && \
10
+ chmod -R u+rwX testProjectExocoreWeb-main
11
+
12
+ USER node
13
 
14
  WORKDIR /app/testProjectExocoreWeb-main
15
 
16
+ RUN npm install
17
+
18
  CMD ["npm", "start"]