Ami.2api / Dockerfile
StarrySkyWorld's picture
Update Dockerfile
7d461bb verified
raw
history blame contribute delete
343 Bytes
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"]