FROM node:25.4-alpine # 安装 git RUN apk add --no-cache git # 设置工作目录 WORKDIR /app # 克隆仓库 RUN git clone https://github.com/Ve-ria/ami.2api.git . # 安装依赖 RUN npm install # 构建项目 RUN npm run build # 暴露端口 EXPOSE 3000 # 修改启动命令,指向正确的路径 CMD ["node", "dist/src/index.js"]