Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -1,10 +1,16 @@
|
|
| 1 |
-
FROM ghcr.io/
|
| 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 && \
|
|
|
|
| 1 |
+
FROM ghcr.io/u8f69/open-webui:v0.6.5.16
|
|
|
|
| 2 |
RUN apt-get update && apt-get install -y python3 python3-pip curl
|
| 3 |
RUN pip3 install --no-cache-dir webdavclient3 requests
|
| 4 |
|
| 5 |
COPY sync_data.sh sync_data.sh
|
| 6 |
|
| 7 |
+
# 在</head>标签前添加custom.css引用
|
| 8 |
+
RUN sed -i 's|</head>|<link rel="stylesheet" href="https://jsdelivr.240723.xyz/gh/RichardQt/owu_style/custom.css"></head>|' /app/build/index.html && \
|
| 9 |
+
sed -i 's|</body>|<script src="https://jsdelivr.240723.xyz/gh/RichardQt/owu_style/custom.js"></script></body>|' /app/build/index.html && \
|
| 10 |
+
sed -i 's|</head>|<link rel="stylesheet" href="https://jsdelivr.240723.xyz/gh/RichardQt/owu_style/editor.css"></head>|' /app/build/index.html && \
|
| 11 |
+
sed -i 's|</body>|<script src="https://jsdelivr.240723.xyz/gh/RichardQt/owu_style/editor.js"></script></body>|' /app/build/index.html
|
| 12 |
+
|
| 13 |
+
|
| 14 |
RUN chmod -R 775 ./data && \
|
| 15 |
chmod -R 775 /app/backend/open_webui/static && \
|
| 16 |
chmod +x sync_data.sh && \
|