Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -11
Dockerfile
CHANGED
|
@@ -1,14 +1,11 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
RUN
|
|
|
|
| 4 |
|
| 5 |
-
|
| 6 |
|
| 7 |
-
RUN chmod -R 775
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
COPY sync_data.sh /app/sync/
|
| 12 |
-
RUN chmod +x /app/sync/sync_data.sh
|
| 13 |
-
|
| 14 |
-
ENTRYPOINT ["/bin/sh", "-c", "/app/sync/sync_data.sh & sleep 10 && /app/entrypoint.sh"]
|
|
|
|
| 1 |
+
FROM ghcr.io/open-webui/open-webui:main
|
| 2 |
|
| 3 |
+
RUN apt-get update && apt-get install -y python3 python3-pip curl
|
| 4 |
+
RUN pip3 install --no-cache-dir webdavclient3 requests
|
| 5 |
|
| 6 |
+
COPY sync_data.sh sync_data.sh
|
| 7 |
|
| 8 |
+
RUN chmod -R 775 ./data && \
|
| 9 |
+
chmod -R 775 /app/backend/open_webui/static && \
|
| 10 |
+
chmod +x sync_data.sh && \
|
| 11 |
+
sed -i "1r sync_data.sh" ./start.sh
|
|
|
|
|
|
|
|
|
|
|
|