flzta commited on
Commit
f845bb5
·
verified ·
1 Parent(s): e28913e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -21,7 +21,6 @@ RUN python3 -m venv /opt/venv
21
  ENV VIRTUAL_ENV=/opt/venv
22
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
23
 
24
- # 安装 huggingface_hub
25
  RUN pip install --no-cache-dir huggingface_hub cryptography
26
 
27
  # 复制同步脚本
@@ -39,5 +38,5 @@ RUN mkdir -p /opt/cloudreve/aria2_downloads && chmod -R 777 /opt/cloudreve/aria2
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
 
21
  ENV VIRTUAL_ENV=/opt/venv
22
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
23
 
 
24
  RUN pip install --no-cache-dir huggingface_hub cryptography
25
 
26
  # 复制同步脚本
 
38
  # 暴露 Cloudreve 端口
39
  EXPOSE 5212
40
 
41
+ # 设置启动命令 to run Cloudreve in foreground and sync script in background, and start aria2 with DHT and PEX enabled
42
+ CMD aria2c --enable-rpc --rpc-listen-port=6800 --daemon --enable-dht=true --enable-pex=true & /opt/cloudreve/cloudreve -c /opt/cloudreve/config.ini & /opt/cloudreve/sync_data.sh