flzta commited on
Commit
ec83cb3
·
verified ·
1 Parent(s): d09a630

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -22,7 +22,7 @@ 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
26
 
27
  # 复制同步脚本
28
  COPY sync_data.sh /opt/cloudreve/
@@ -39,5 +39,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 with DHT and PEX enabled, and include BT trackers
43
- CMD aria2c --enable-rpc --rpc-listen-port=6800 --daemon --enable-dht=true --enable-pex=true --bt-tracker="udp://tracker.coppersurfer.tk:6969/announce,http://tracker.internetwarriors.net:1337/announce,udp://tracker.opentrackr.org:1337/announce" & /opt/cloudreve/cloudreve -c /opt/cloudreve/config.ini & /opt/cloudreve/sync_data.sh
 
22
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
23
 
24
  # 安装 huggingface_hub
25
+ RUN pip install --no-cache-dir huggingface_hub cryptography
26
 
27
  # 复制同步脚本
28
  COPY sync_data.sh /opt/cloudreve/
 
39
  # 暴露 Cloudreve 端口
40
  EXPOSE 5212
41
 
42
+ # 设置启动命令 to run Cloudreve in foreground and sync script in background, and start aria2 with DHT and BT trackers
43
+ CMD aria2c --enable-rpc --rpc-listen-port=6800 --daemon --enable-dht=true --bt-tracker="udp://tracker.coppersurfer.tk:6969/announce,http://tracker.internetwarriors.net:1337/announce,udp://tracker.opentrackr.org:1337/announce" -x 16 -s 4 & /opt/cloudreve/cloudreve -c /opt/cloudreve/config.ini & /opt/cloudreve/sync_data.sh