web / Dockerfile
nbugs's picture
Update Dockerfile
d805d35 verified
raw
history blame
619 Bytes
FROM ghcr.io/open-webui/open-webui:main
# 复制自定义文件
COPY custom.css /app/build/assets/
COPY custom.js /app/build/assets/
COPY editor.css /app/build/assets/
COPY editor.js /app/build/assets/
# 修改HTML引用
RUN sed -i 's|</head>|<link rel="stylesheet" href="assets/editor.css"></link><link rel="stylesheet" href="assets/custom.css"></link></head>|' /app/build/index.html && \
sed -i 's|</body>|<script src="assets/editor.js"></script><script src="assets/custom.js"></script></body>|' /app/build/index.html
# 设置权限
RUN chmod -R 777 ./data && \
chmod -R 777 /app/backend/open_webui/static