zhzabcd commited on
Commit
b578674
·
verified ·
1 Parent(s): 4522be5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +34 -34
Dockerfile CHANGED
@@ -1,35 +1,35 @@
1
- # 使用基础镜像
2
- FROM debian:latest
3
-
4
- # 安装必要的工具
5
- RUN apt-get update && apt-get install -y \
6
- wget \
7
- tar
8
- RUN apt-get update && apt-get install -y aria2
9
- # 设置工作目录
10
- WORKDIR /app
11
-
12
- # 下载并解压Cloudreve
13
- RUN wget https://github.com/cloudreve/Cloudreve/releases/download/3.8.3/cloudreve_3.8.3_linux_amd64.tar.gz \
14
- && tar -zxvf cloudreve_3.8.3_linux_amd64.tar.gz \
15
- && rm cloudreve_3.8.3_linux_amd64.tar.gz
16
-
17
- # 更改 /app 目录的权限
18
- RUN chmod 777 /app
19
- COPY conf.ini /app/conf.ini
20
- COPY aria2.conf /app/aria2.conf
21
- # 赋予执行权限
22
- RUN chmod +x ./cloudreve
23
- # 创建 /aria2/data 目录
24
- RUN mkdir -p /aria2/data
25
-
26
- # 更改 /aria2/data 目录的权限
27
- RUN chmod 777 /aria2/data
28
- # 暴露端口
29
- EXPOSE 7860
30
-
31
- # # 启动 Cloudreve
32
- # CMD ["./cloudreve","-c","/app/conf.ini"]
33
- COPY start.sh /app/start.sh
34
- RUN chmod +x /app/start.sh
35
  CMD ["/app/start.sh"]
 
1
+ # 使用基础镜像
2
+ FROM debian:latest
3
+
4
+ # 安装必要的工具
5
+ RUN apt-get update && apt-get install -y \
6
+ wget \
7
+ tar
8
+ RUN apt-get update && apt-get install -y aria2
9
+ # 设置工作目录
10
+ WORKDIR /app
11
+
12
+ # 下载并解压Cloudreve
13
+ RUN wget https://github.com/cloudreve/Cloudreve/releases/download/3.8.3/cloudreve_3.8.3_linux_amd64.tar.gz \
14
+ && tar -zxvf cloudreve_3.8.3_linux_amd64.tar.gz \
15
+ && rm cloudreve_3.8.3_linux_amd64.tar.gz
16
+
17
+ # 更改 /app 目录的权限
18
+ RUN chmod 777 /app
19
+ COPY conf.ini /app/conf.ini
20
+ COPY aria2.conf /app/aria2.conf
21
+ # 赋予执行权限
22
+ RUN chmod +x ./cloudreve
23
+ # 创建 /aria2/data 目录
24
+ RUN mkdir -p /aria2/data
25
+
26
+ # 更改 /aria2/data 目录的权限
27
+ RUN chmod 777 /aria2/data
28
+ # 暴露端口
29
+ EXPOSE 5212
30
+
31
+ # # 启动 Cloudreve
32
+ # CMD ["./cloudreve","-c","/app/conf.ini"]
33
+ COPY start.sh /app/start.sh
34
+ RUN chmod +x /app/start.sh
35
  CMD ["/app/start.sh"]