Charan5775 commited on
Commit
2e3abf8
·
verified ·
1 Parent(s): 2ef49d7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -3,8 +3,10 @@ FROM ${BASE} AS base
3
 
4
  WORKDIR /app
5
 
6
- # Use non-root user
7
- RUN useradd -m node && chown -R node:node /app
 
 
8
  USER node
9
 
10
  # Install dependencies (cached step)
 
3
 
4
  WORKDIR /app
5
 
6
+ # Change ownership of the /app directory to the existing node user
7
+ RUN chown -R node:node /app
8
+
9
+ # Switch to the node user
10
  USER node
11
 
12
  # Install dependencies (cached step)