StarrySkyWorld commited on
Commit
2c66aaf
·
verified ·
1 Parent(s): 17240f0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:25.4-alpine
2
+
3
+ # 安装 git(alpine 镜像默认不包含 git)
4
+ RUN apk add --no-cache git
5
+
6
+ # 设置工作目录
7
+ WORKDIR /app
8
+
9
+ # 克隆仓库
10
+ RUN git clone https://github.com/Ve-ria/ami.2api.git .
11
+
12
+ # 安装依赖
13
+ RUN npm install
14
+
15
+ # 暴露端口(根据实际应用需要调整,常见的是 3000)
16
+ EXPOSE 3000
17
+
18
+ # 启动应用
19
+ CMD ["npm", "start"]