yxmnjxzx commited on
Commit
7a192f3
·
verified ·
1 Parent(s): cbee77b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -8
Dockerfile CHANGED
@@ -1,9 +1,4 @@
1
- FROM ghcr.io/open-webui/open-webui:latest
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
- # 安装Python依赖项
28
- RUN pip install langchain-openai==0.2.14 langgraph==0.2.60 aiohttp exa_py==1.7.0 fire==0.7.0 python-dotenv==1.0.1
 
 
 
 
 
 
 
 
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