cv / Dockerfile
nump's picture
Upload 4 files
20d9d4f verified
raw
history blame
679 Bytes
# 使用基础镜像
FROM golang:1.18
# 安装必要的工具
RUN apt-get update && apt-get install -y \
wget \
tar \
git
RUN apt-get update && apt-get install -y aria2 \
&& git clone https://github.com/cloudreve/Cloudreve.git /app
COPY aria2.conf /app/aria2.conf
COPY migration.go /app/models/migration.go
# 设置工作目录
WORKDIR /app
# 更改 /app 目录的权限
RUN chmod 777 /app && go mod tidy && go build -o cloudreve
# 赋予执行权限
RUN chmod +x ./cloudreve
RUN mkdir -p /aria2/data
RUN chmod 777 /aria2/data
EXPOSE 7860
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
CMD ["/app/start.sh"]