Update Dockerfile
Browse files- 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
|
| 43 |
-
CMD aria2c --enable-rpc --rpc-listen-port=6800 --daemon
|
|
|
|
| 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 |
# 暴露 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
|