issaocean commited on
Commit
54c879d
·
verified ·
1 Parent(s): 84d8c4b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -24
Dockerfile CHANGED
@@ -1,30 +1,11 @@
1
  FROM ghcr.io/open-webui/open-webui:main
2
 
3
- # 安装Redis
4
- RUN apt-get update && apt-get install -y redis-server
5
-
6
- # 修改Redis配置和权限
7
- RUN mkdir -p /var/run/redis && \
8
- chown -R 1000:1000 /var/run/redis && \
9
- chown -R 1000:1000 /var/lib/redis && \
10
- chmod 777 /var/run/redis
11
-
12
- # 创建启动Redis的脚本
13
- RUN echo "#!/bin/bash" > redis-start.sh && \
14
- echo "redis-server --daemonize yes --save '' --appendonly no" >> redis-start.sh && \
15
- echo "sleep 2" >> redis-start.sh && \
16
- echo "echo 'Redis status:'" >> redis-start.sh && \
17
- echo "redis-cli ping" >> redis-start.sh
18
-
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
 
1
  FROM ghcr.io/open-webui/open-webui:main
2
 
3
+ RUN apt-get update && apt-get install -y python3 python3-pip curl
4
+ RUN pip3 install --no-cache-dir webdavclient3 requests
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  COPY sync_data.sh sync_data.sh
7
 
8
+ RUN chmod -R 775 ./data && \
9
+ chmod -R 775 /app/backend/open_webui/static && \
10
  chmod +x sync_data.sh && \
11
+ sed -i "1r sync_data.sh" ./start.sh