JerryZhouYG commited on
Commit
8b16136
·
verified ·
1 Parent(s): 5070915

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -13
Dockerfile CHANGED
@@ -1,15 +1,6 @@
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
- echo "python3 server.py &" >> ./start.sh
15
- sed -i "1r sync_data.sh" ./start.sh && \
 
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