nbugs commited on
Commit
3dc8a47
·
verified ·
1 Parent(s): 4f53a92

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -11,10 +11,12 @@ COPY editor.css /app/build/assets/
11
  COPY editor.js /app/build/assets/
12
 
13
  # 在</head>标签前添加custom.css引用
14
- RUN sed -i 's|</head>|<link rel="stylesheet" href="assets/custom.css"></head>|' /app/build/index.html && \
15
- sed -i 's|</body>|<script src="assets/custom.js"></script></body>|' /app/build/index.html && \
16
- sed -i 's|</head>|<link rel="stylesheet" href="assets/editor.css"></head>|' /app/build/index.html && \
17
  sed -i 's|</body>|<script src="assets/editor.js"></script></body>|' /app/build/index.html
 
 
 
18
  RUN chmod -R 777 ./data && \
19
  chmod -R 777 /app/backend/open_webui/static && \
20
  chmod +x sync_data.sh && \
 
11
  COPY editor.js /app/build/assets/
12
 
13
  # 在</head>标签前添加custom.css引用
14
+
15
+ RUN sed -i 's|</head>|<link rel="stylesheet" href="assets/editor.css"></head>|' /app/build/index.html && \
 
16
  sed -i 's|</body>|<script src="assets/editor.js"></script></body>|' /app/build/index.html
17
+ #sed -i 's|</head>|<link rel="stylesheet" href="assets/custom.css"></head>|' /app/build/index.html && \
18
+ #sed -i 's|</body>|<script src="assets/custom.js"></script></body>|' /app/build/index.html && \
19
+
20
  RUN chmod -R 777 ./data && \
21
  chmod -R 777 /app/backend/open_webui/static && \
22
  chmod +x sync_data.sh && \