FROM ghcr.io/open-webui/open-webui:main RUN apt-get update && apt-get install -y python3 python3-pip RUN pip3 install --no-cache-dir huggingface_hub # 复制字体文件 COPY fonts/* /app/build/assets/fonts/ # 复制自定义CSS和JS文件 COPY custom.css /app/build/assets/ COPY custom.js /app/build/assets/ # 在标签前添加custom.css引用 RUN sed -i 's|||' /app/build/index.html && \ sed -i 's|||' /app/build/index.html COPY sync_data.sh sync_data.sh RUN chmod -R 777 ./data && \ chmod +x sync_data.sh && \ sed -i "1r sync_data.sh" ./start.sh