Update Dockerfile
Browse files- 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
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|