Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -6,7 +6,7 @@ ENV TZ=Asia/Shanghai
|
|
| 6 |
|
| 7 |
# 下载 Cloudreve 3.8.3
|
| 8 |
RUN apk update && \
|
| 9 |
-
apk add --no-cache wget unzip python3 py3-pip bash tar gzip jq curl && \
|
| 10 |
rm -rf /var/cache/apk/*
|
| 11 |
|
| 12 |
# 创建 Cloudreve 数据目录
|
|
@@ -16,13 +16,12 @@ RUN wget -O cloudreve.tar.gz "https://github.com/cloudreve/Cloudreve/releases/do
|
|
| 16 |
tar -zxvf cloudreve.tar.gz && \
|
| 17 |
rm cloudreve.tar.gz
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
RUN python3 -m venv /opt/venv
|
| 21 |
ENV VIRTUAL_ENV=/opt/venv
|
|
|
|
| 22 |
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
| 23 |
|
| 24 |
-
|
| 25 |
-
RUN pip install --no-cache-dir huggingface_hub
|
| 26 |
|
| 27 |
# 复制同步脚本
|
| 28 |
COPY sync_data.sh /opt/cloudreve/
|
|
|
|
| 6 |
|
| 7 |
# 下载 Cloudreve 3.8.3
|
| 8 |
RUN apk update && \
|
| 9 |
+
apk add --no-cache wget unzip python3 python3-venv py3-pip bash tar gzip jq curl && \
|
| 10 |
rm -rf /var/cache/apk/*
|
| 11 |
|
| 12 |
# 创建 Cloudreve 数据目录
|
|
|
|
| 16 |
tar -zxvf cloudreve.tar.gz && \
|
| 17 |
rm cloudreve.tar.gz
|
| 18 |
|
| 19 |
+
# 创建虚拟环境并安装依赖
|
|
|
|
| 20 |
ENV VIRTUAL_ENV=/opt/venv
|
| 21 |
+
RUN python3 -m venv $VIRTUAL_ENV
|
| 22 |
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
| 23 |
|
| 24 |
+
RUN pip install --no-cache-dir huggingface_hub cryptography
|
|
|
|
| 25 |
|
| 26 |
# 复制同步脚本
|
| 27 |
COPY sync_data.sh /opt/cloudreve/
|