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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,9 +1,6 @@
1
- FROM ghcr.io/open-webui/open-webui:latest
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
 
1
+ FROM ghcr.io/open-webui/open-webui:main
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