Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
|
@@ -1,9 +1,6 @@
|
|
| 1 |
-
FROM ghcr.io/open-webui/open-webui:
|
| 2 |
|
| 3 |
COPY data-sync.sh data-sync.sh
|
| 4 |
|
| 5 |
-
RUN
|
| 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
|
|
|
|
|
|
|
|
|