Mahfujul commited on
Commit
411608b
1 Parent(s): 6a641d1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -11,7 +11,12 @@ WORKDIR /code
11
 
12
  # Copy package.json and install dependencies
13
  COPY package*.json ./
14
- RUN chmod 644 package*.json
 
 
 
 
 
15
 
16
  RUN npm install
17
 
 
11
 
12
  # Copy package.json and install dependencies
13
  COPY package*.json ./
14
+
15
+ # Change ownership of the files to allow npm install
16
+ RUN chown -R node:node /code
17
+
18
+ # Switch to the node user
19
+ USER node
20
 
21
  RUN npm install
22