Drive / Dockerfile
hanxuan's picture
安装 FFmpeg 支持云转码
885f80b verified
raw
history blame
No virus
538 Bytes
# 使用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"]