# 使用Node.js官方提供的Node镜像作为基础镜像 | |
FROM node:14 | |
# 设置工作目录 | |
WORKDIR /app | |
# 克隆项目仓库 | |
RUN git clone --depth=1 https://github.com/Zyy955/character-Api.git . | |
# 进入主目录 | |
WORKDIR /app | |
# 克隆咕咕牛图仓 | |
RUN git clone --depth=1 https://github.com/GuGuNiu/Miao-Plugin-MBT.git ./data | |
# 安装应用程序的依赖 | |
RUN npm install --production | |
# 暴露端口 | |
EXPOSE 7860 | |
# 运行应用程序 | |
CMD ["node", "app.js"] | |