Spaces:
Paused
Paused
| # 使用 Node.js 18 作为基础镜像 | |
| FROM node:18-alpine | |
| # 创建工作目录 | |
| WORKDIR /app | |
| # 安装git | |
| RUN apk --no-cache add git | |
| # 克隆源代码到工作目录 | |
| RUN git clone https://github.com/GordonChanFZ/wechatbot-webhook . | |
| # 安装应用程序依赖项 | |
| RUN yarn && yarn cache clean && npm uninstall yarn -g | |
| RUN chmod -R 777 . | |
| # 复制应用程序代码到工作目录 | |
| COPY . . | |
| # 如果收消息想接入webhook | |
| ENV RECVD_MSG_API= | |
| # 默认登录API接口访问token | |
| ENV LOGIN_API_TOKEN= | |
| # 是否禁用默认登录 | |
| ENV DISABLE_AUTO_LOGIN= | |
| # 暴露端口(你的 Express 应用程序监听的端口) | |
| EXPOSE 3100 | |
| # 启动应用程序 | |
| CMD ["npm", "start"] |