he1237596 commited on
Commit
559b758
·
verified ·
1 Parent(s): 06ad855

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile CHANGED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN npm config set registry https://registry.npmmirror.com
6
+
7
+ COPY package*.json ./
8
+
9
+ RUN npm install
10
+
11
+ COPY . .
12
+
13
+ ENV NODE_ENV=production
14
+
15
+ EXPOSE 7860
16
+
17
+ CMD ["node", "app.js"]