File size: 538 Bytes
1ff3310
 
 
 
 
 
 
 
 
 
885f80b
1ff3310
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 使用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:\/\/hanxuan-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"]