Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -33,11 +33,11 @@ RUN chmod +x /opt/cloudreve/sync_data.sh
|
|
| 33 |
# **确保 /opt/cloudreve 目录及其内容有读写执行权限**
|
| 34 |
RUN chmod -R 777 /opt/cloudreve/
|
| 35 |
|
| 36 |
-
#
|
| 37 |
RUN mkdir -p /opt/cloudreve/aria2_downloads && chmod -R 777 /opt/cloudreve/aria2_downloads
|
| 38 |
|
| 39 |
# 暴露 Cloudreve 端口
|
| 40 |
EXPOSE 5212
|
| 41 |
|
| 42 |
-
# 设置启动命令 to run Cloudreve in foreground and sync script in background, and start aria2
|
| 43 |
-
CMD aria2c --enable-rpc --rpc-listen-port=6800 --daemon
|
|
|
|
| 33 |
# **确保 /opt/cloudreve 目录及其内容有读写执行权限**
|
| 34 |
RUN chmod -R 777 /opt/cloudreve/
|
| 35 |
|
| 36 |
+
# **新增:创建 Aria2 下载目录并设置权限**
|
| 37 |
RUN mkdir -p /opt/cloudreve/aria2_downloads && chmod -R 777 /opt/cloudreve/aria2_downloads
|
| 38 |
|
| 39 |
# 暴露 Cloudreve 端口
|
| 40 |
EXPOSE 5212
|
| 41 |
|
| 42 |
+
# 设置启动命令 to run Cloudreve in foreground and sync script in background, and start aria2
|
| 43 |
+
CMD aria2c --enable-rpc --rpc-listen-port=6800 --daemon & /opt/cloudreve/cloudreve -c /opt/cloudreve/config.ini & /opt/cloudreve/sync_data.sh
|