Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -7,11 +7,14 @@ ENV TZ=Asia/Shanghai
|
|
| 7 |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
| 8 |
echo $TZ > /etc/timezone
|
| 9 |
|
| 10 |
-
#
|
| 11 |
RUN apt-get update && \
|
| 12 |
-
apt-get install -y wget tar && \
|
| 13 |
rm -rf /var/lib/apt/lists/*
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
# 设置工作目录
|
| 16 |
WORKDIR /OpenList
|
| 17 |
|
|
@@ -28,7 +31,7 @@ RUN mkdir -p /OpenList/data && \
|
|
| 28 |
# 设置可执行权限
|
| 29 |
RUN chmod 755 openlist
|
| 30 |
|
| 31 |
-
# 设置非root
|
| 32 |
RUN useradd -m openlistuser && \
|
| 33 |
chown -R openlistuser:openlistuser /OpenList
|
| 34 |
|
|
|
|
| 7 |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
| 8 |
echo $TZ > /etc/timezone
|
| 9 |
|
| 10 |
+
# 安装系统依赖
|
| 11 |
RUN apt-get update && \
|
| 12 |
+
apt-get install -y wget tar python3 python3-pip && \
|
| 13 |
rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
+
# 安装huggingface_hub
|
| 16 |
+
RUN pip3 install --no-cache-dir huggingface_hub
|
| 17 |
+
|
| 18 |
# 设置工作目录
|
| 19 |
WORKDIR /OpenList
|
| 20 |
|
|
|
|
| 31 |
# 设置可执行权限
|
| 32 |
RUN chmod 755 openlist
|
| 33 |
|
| 34 |
+
# 设置非root用户运行
|
| 35 |
RUN useradd -m openlistuser && \
|
| 36 |
chown -R openlistuser:openlistuser /OpenList
|
| 37 |
|