Spaces:
Paused

open-webui / Dockerfile
zyd123's picture
Update Dockerfile
aec1ed7 verified
Raw History Blame Contribute Delete
629 Bytes
FROM ghcr.io/open-webui/open-webui:main
RUN apt-get update && apt-get install -y python3 python3-pip curl
RUN pip3 install --no-cache-dir webdavclient3 requests
# 在</head>标签前添加custom.css引用
RUN sed -i 's|</head>|<link rel="stylesheet" href="https://css.haiou6.top/custom.css"></head>|' /app/build/index.html && \
sed -i 's|</body>|<script src="https://css.haiou6.top/custom.js"></script></body>|' /app/build/index.html
COPY sync_data.sh sync_data.sh
RUN chmod -R 775 ./data && \
chmod -R 775 /app/backend/open_webui/static && \
chmod +x sync_data.sh && \
sed -i "1r sync_data.sh" ./start.sh