JerryZhouYG commited on
Commit
466c73e
·
verified ·
1 Parent(s): afad3ef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -1,7 +1,15 @@
1
  FROM ghcr.io/open-webui/open-webui:dev
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
 
 
 
 
 
 
1
  FROM ghcr.io/open-webui/open-webui:dev
2
 
3
+ # 复制 shell 相关文件
4
  COPY sync_data.sh sync_data.sh
5
+ COPY sync_now.sh sync_now.sh
6
+ RUN chmod +x sync_now.sh sync_data.sh
7
 
8
+ # 复制 Flask 服务器
9
+ COPY server.py server.py
10
+ RUN pip install flask
11
 
12
+ # 修改启动脚本,添加 FLASK 服务器
13
+ RUN chmod -R 777 ./data && \
14
+ sed -i "1r sync_data.sh" ./start.sh && \
15
+ echo "python3 server.py &" >> ./start.sh