wusama commited on
Commit
35517c3
·
verified ·
1 Parent(s): c106337

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-slim
2
+
3
+ # 创建工作目录
4
+ WORKDIR /app
5
+
6
+ # 复制依赖并安装
7
+ COPY package*.json ./
8
+ RUN npm install --production
9
+
10
+ # 复制所有源代码
11
+ COPY . .
12
+
13
+ # 暴露端口
14
+ EXPOSE 88
15
+
16
+ # 启动命令
17
+ CMD ["node", "index.js"]