| # 使用Node.js基础镜像 | |
| FROM node:alpine | |
| # 设置大陆时区 | |
| ENV TZ Asia/Shanghai | |
| # 设置工作目录 | |
| WORKDIR /drive | |
| # 安装Git | |
| RUN apk update && apk add --no-cache git ffmpeg | |
| # 克隆项目 | |
| RUN git clone --depth=1 https://github.com/Zyy955/Lain-drive . | |
| # 修改域名 | |
| RUN sed -i 's/^baseUrl:.*/baseUrl: https:\/\/diqiu-drive.hf.space/' config/defSet/config.yaml | |
| # 赋予权限/归递 | |
| RUN chmod -R 777 /tmp | |
| RUN chmod -R 777 /drive | |
| # 安装依赖 | |
| RUN npm install -g pnpm | |
| RUN pnpm install | |
| # 启动! | |
| CMD ["node", "app.js"] |