ShadowVNs commited on
Commit
2c25318
1 Parent(s): b2804fa

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:latest
2
+
3
+ RUN mkdir /home/user && chown node:node /home/user
4
+
5
+ WORKDIR /home/user
6
+
7
+ USER node
8
+
9
+ COPY --chown=node:node package*.json ./
10
+
11
+ RUN npm install
12
+
13
+ COPY --chown=node:node . .
14
+
15
+ EXPOSE 7860
16
+
17
+ CMD [ "npm", "start" ]