Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -12,10 +12,14 @@ COPY custom.js /app/build/assets/
|
|
12 |
COPY editor.css /app/build/assets/
|
13 |
COPY editor.js /app/build/assets/
|
14 |
|
|
|
|
|
|
|
15 |
# 修改HTML引用
|
16 |
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 && \
|
17 |
sed -i 's|</body>|<script src="assets/editor.js"></script><script src="assets/custom.js"></script></body>|' /app/build/index.html
|
18 |
|
19 |
# 设置权限
|
20 |
RUN chmod -R 777 ./data && \
|
21 |
-
chmod -R 777 /app/backend/open_webui/static
|
|
|
|
12 |
COPY editor.css /app/build/assets/
|
13 |
COPY editor.js /app/build/assets/
|
14 |
|
15 |
+
# 复制备份脚本但不执行
|
16 |
+
COPY sync_data.sh /app/sync_data.sh
|
17 |
+
|
18 |
# 修改HTML引用
|
19 |
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 && \
|
20 |
sed -i 's|</body>|<script src="assets/editor.js"></script><script src="assets/custom.js"></script></body>|' /app/build/index.html
|
21 |
|
22 |
# 设置权限
|
23 |
RUN chmod -R 777 ./data && \
|
24 |
+
chmod -R 777 /app/backend/open_webui/static && \
|
25 |
+
chmod +x /app/sync_data.sh
|