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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -5,17 +5,17 @@ RUN pip3 install --no-cache-dir huggingface_hub
5
 
6
  COPY sync_data.sh sync_data.sh
7
  # 复制自定义CSS和JS文件
8
- #COPY custom.css /app/build/assets/
9
- #COPY custom.js /app/build/assets/
10
  COPY editor.css /app/build/assets/
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 && \
 
5
 
6
  COPY sync_data.sh sync_data.sh
7
  # 复制自定义CSS和JS文件
8
+ COPY custom.css /app/build/assets/
9
+ COPY custom.js /app/build/assets/
10
  COPY editor.css /app/build/assets/
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 && \