Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +10 -8
Dockerfile
CHANGED
@@ -1,9 +1,4 @@
|
|
1 |
-
FROM ghcr.io/open-webui/open-webui:
|
2 |
-
|
3 |
-
COPY sync_data.sh sync_data.sh
|
4 |
-
|
5 |
-
RUN chmod -R 777 ./data && \
|
6 |
-
sed -i "1r sync_data.sh" ./start.sh
|
7 |
|
8 |
# 安装Redis
|
9 |
RUN apt-get update && apt-get install -y redis-server
|
@@ -24,5 +19,12 @@ RUN echo "#!/bin/bash" > redis-start.sh && \
|
|
24 |
RUN chmod -R 777 ./data && \
|
25 |
sed -i "1r redis-start.sh" ./start.sh
|
26 |
|
27 |
-
|
28 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ghcr.io/open-webui/open-webui:main
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
# 安装Redis
|
4 |
RUN apt-get update && apt-get install -y redis-server
|
|
|
19 |
RUN chmod -R 777 ./data && \
|
20 |
sed -i "1r redis-start.sh" ./start.sh
|
21 |
|
22 |
+
RUN apt-get update && apt-get install -y python3 python3-pip
|
23 |
+
RUN pip3 install --no-cache-dir huggingface_hub
|
24 |
+
|
25 |
+
COPY sync_data.sh sync_data.sh
|
26 |
+
|
27 |
+
RUN chmod -R 777 ./data && \
|
28 |
+
chmod -R 777 /app/backend/open_webui/static && \
|
29 |
+
chmod +x sync_data.sh && \
|
30 |
+
sed -i "1r sync_data.sh" ./start.sh
|