Spaces:
Running
Running
Upload 4 files
Browse files- Dockerfile +4 -2
- aria2.conf +1 -3
Dockerfile
CHANGED
@@ -19,8 +19,10 @@ FROM debian:buster-slim
|
|
19 |
RUN apt-get update && apt-get install -y aria2 && rm -rf /var/lib/apt/lists/*
|
20 |
|
21 |
# Create necessary directories
|
22 |
-
RUN mkdir -p /app
|
23 |
-
|
|
|
|
|
24 |
# Copy the built executable from the builder stage
|
25 |
COPY --from=builder /app/cloudreve /app/
|
26 |
|
|
|
19 |
RUN apt-get update && apt-get install -y aria2 && rm -rf /var/lib/apt/lists/*
|
20 |
|
21 |
# Create necessary directories
|
22 |
+
RUN mkdir -p /app \
|
23 |
+
&& mkdir -p /aria2/data \
|
24 |
+
&& chmod 777 /aria2/data \
|
25 |
+
&& chmod 777 /app
|
26 |
# Copy the built executable from the builder stage
|
27 |
COPY --from=builder /app/cloudreve /app/
|
28 |
|
aria2.conf
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
# 启用 RPC 服务
|
2 |
enable-rpc=true
|
3 |
# RPC监听端口
|
4 |
-
rpc-listen-port=6800
|
5 |
-
# RPC 授权令牌,可自行设定
|
6 |
-
rpc-secret=eatyour
|
|
|
1 |
# 启用 RPC 服务
|
2 |
enable-rpc=true
|
3 |
# RPC监听端口
|
4 |
+
rpc-listen-port=6800
|
|
|
|