caliphdev commited on
Commit
c060704
·
verified ·
1 Parent(s): 0150580

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,11 +1,18 @@
1
  FROM node:latest
2
- WORKDIR /app
 
 
 
 
3
 
4
  COPY package.json .
5
 
6
  RUN npm install
7
 
8
- COPY . /app
 
 
 
9
 
10
  EXPOSE 7860
11
 
 
1
  FROM node:latest
2
+ RUN useradd -m -u 1000 kalip
3
+ USER kalip
4
+ ENV HOME=/home/kalip
5
+
6
+ WORKDIR $HOME/app
7
 
8
  COPY package.json .
9
 
10
  RUN npm install
11
 
12
+ COPY . .
13
+
14
+ COPY --chown=kalip . $HOME/app
15
+
16
 
17
  EXPOSE 7860
18