ruv commited on
Commit
19a6d69
·
verified ·
1 Parent(s): 8c2f324

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -13,8 +13,15 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
13
  COPY package*.json ./
14
  COPY src ./src
15
  RUN npm install
 
 
 
 
16
  # Expose the desired port
17
  EXPOSE 7860
18
 
19
- # RUN npm run dev
 
 
 
20
  CMD ["npm", "start", "dev"]
 
13
  COPY package*.json ./
14
  COPY src ./src
15
  RUN npm install
16
+
17
+ # Set the ownership of the /app directory to the node user
18
+ RUN chown -R node:node /app
19
+
20
  # Expose the desired port
21
  EXPOSE 7860
22
 
23
+ # Switch to the node user
24
+ USER node
25
+
26
+ # Start the application
27
  CMD ["npm", "start", "dev"]