Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -4,10 +4,10 @@ RUN apt-get update && apt-get install -y python3 python3-pip
|
|
4 |
RUN pip3 install --no-cache-dir huggingface_hub
|
5 |
|
6 |
# 复制自定义文件
|
7 |
-
COPY custom.css /app/build/assets/
|
8 |
-
COPY custom.js /app/build/assets/
|
9 |
-
COPY editor.css /app/build/assets/
|
10 |
-
COPY editor.js /app/build/assets/
|
11 |
|
12 |
# 替换为优化版的备份脚本
|
13 |
COPY sync_data.sh /tmp/sync_data.sh
|
@@ -25,8 +25,8 @@ exec /app/start.sh "$@"\n\
|
|
25 |
chmod +x /app/custom_start.sh
|
26 |
|
27 |
# 修改HTML引用
|
28 |
-
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 && \
|
29 |
-
sed -i 's|</body>|<script src="assets/editor.js"></script><script src="assets/custom.js"></script></body>|' /app/build/index.html
|
30 |
|
31 |
# 设置权限
|
32 |
RUN chmod -R 777 ./data && \
|
|
|
4 |
RUN pip3 install --no-cache-dir huggingface_hub
|
5 |
|
6 |
# 复制自定义文件
|
7 |
+
#COPY custom.css /app/build/assets/
|
8 |
+
#COPY custom.js /app/build/assets/
|
9 |
+
#COPY editor.css /app/build/assets/
|
10 |
+
#COPY editor.js /app/build/assets/
|
11 |
|
12 |
# 替换为优化版的备份脚本
|
13 |
COPY sync_data.sh /tmp/sync_data.sh
|
|
|
25 |
chmod +x /app/custom_start.sh
|
26 |
|
27 |
# 修改HTML引用
|
28 |
+
#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 && \
|
29 |
+
#sed -i 's|</body>|<script src="assets/editor.js"></script><script src="assets/custom.js"></script></body>|' /app/build/index.html
|
30 |
|
31 |
# 设置权限
|
32 |
RUN chmod -R 777 ./data && \
|