Mcanroe commited on
Commit
6ba323c
·
verified ·
1 Parent(s): 9562674

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -2,5 +2,8 @@ FROM ghcr.io/open-webui/open-webui:latest
2
 
3
  COPY data-sync.sh data-sync.sh
4
 
5
- RUN chmod -R 777 ./data && \
6
- sed -i "1r data-sync.sh" ./start.sh
 
 
 
 
2
 
3
  COPY data-sync.sh data-sync.sh
4
 
5
+ RUN mv /app/backend/open_webui/static /app/backend/open_webui/static_original
6
+
7
+ RUN ln -s /data/static /app/backend/open_webui/static
8
+
9
+ RUN sed -i '1i #!/bin/bash\n/bin/bash ./data-sync.sh\nif [ ! -d "/data/static" ]; then cp -r /app/backend/open_webui/static_original/. /data/static; fi' ./start.sh