Upload 4 files
Browse files- Dockerfile +7 -3
- aria2.conf +6 -0
- start.sh +5 -0
Dockerfile
CHANGED
@@ -5,7 +5,7 @@ FROM debian:latest
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
wget \
|
7 |
tar
|
8 |
-
|
9 |
# 设置工作目录
|
10 |
WORKDIR /app
|
11 |
|
@@ -17,11 +17,15 @@ RUN wget https://github.com/cloudreve/Cloudreve/releases/download/3.8.3/cloudrev
|
|
17 |
# 更改 /app 目录的权限
|
18 |
RUN chmod 777 /app
|
19 |
COPY conf.ini /app/conf.ini
|
|
|
20 |
# 赋予执行权限
|
21 |
RUN chmod +x ./cloudreve
|
22 |
|
23 |
# 暴露端口
|
24 |
EXPOSE 7860
|
25 |
|
26 |
-
# 启动 Cloudreve
|
27 |
-
CMD ["./cloudreve","-c","/app/conf.ini"]
|
|
|
|
|
|
|
|
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 |
|
|
|
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 |
|
24 |
# 暴露端口
|
25 |
EXPOSE 7860
|
26 |
|
27 |
+
# # 启动 Cloudreve
|
28 |
+
# CMD ["./cloudreve","-c","/app/conf.ini"]
|
29 |
+
COPY start.sh /app/start.sh
|
30 |
+
RUN chmod +x /app/start.sh
|
31 |
+
CMD ["/app/start.sh"]
|
aria2.conf
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 启用 RPC 服务
|
2 |
+
enable-rpc=true
|
3 |
+
# RPC监听端口
|
4 |
+
rpc-listen-port=6800
|
5 |
+
# RPC 授权令牌,可自行设定
|
6 |
+
rpc-secret=eatyour
|
start.sh
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
# 启动 aria2
|
3 |
+
aria2c --conf-path=/app/aria2.conf
|
4 |
+
# 启动 Cloudreve
|
5 |
+
./cloudreve -c /app/conf.ini
|