wynai commited on
Commit
2f2ac83
·
verified ·
1 Parent(s): bcf2439

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,17 +1,19 @@
1
- FROM ghcr.io/open-webui/open-webui:dev
2
 
3
  ENV PORT=7860
4
  ENV HOST=0.0.0.0
5
 
6
  USER root
7
 
8
- # Copy script vào container
9
  COPY sync_webuidb.sh /app/sync_webuidb.sh
 
10
 
11
- # Cấp quyền ghi toàn bộ cấp quyền thực thi script
12
- RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh
 
13
 
14
  EXPOSE 7860
15
 
16
- # Chạy song song cả hai tiến trình
17
  CMD bash -c "/app/sync_webuidb.sh & ./start.sh"
 
1
+ FROM ghcr.io/open-webui/open-webui:main
2
 
3
  ENV PORT=7860
4
  ENV HOST=0.0.0.0
5
 
6
  USER root
7
 
8
+ # Sao chép các file cần thiết
9
  COPY sync_webuidb.sh /app/sync_webuidb.sh
10
+ COPY requirements.txt /app/requirements.txt
11
 
12
+ # Cấp quyền và cài thư viện Python
13
+ RUN chmod -R 777 /app && chmod +x /app/sync_webuidb.sh && \
14
+ pip install --no-cache-dir -r /app/requirements.txt || true
15
 
16
  EXPOSE 7860
17
 
18
+ # Chạy song song script server
19
  CMD bash -c "/app/sync_webuidb.sh & ./start.sh"