Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -7,8 +7,8 @@ COPY custom.css /app/build/assets/
|
|
| 7 |
COPY custom.js /app/build/assets/
|
| 8 |
|
| 9 |
# 在</head>标签前添加custom.css引用
|
| 10 |
-
RUN sed -i 's|</head>|<link rel="stylesheet" href="assets/custom.css"></head>|' /app/build/index.html && \
|
| 11 |
-
sed -i 's|</body>|<script src="assets/custom.js"></script></body>|' /app/build/index.html
|
| 12 |
|
| 13 |
# 安装Redis
|
| 14 |
RUN apt-get update && apt-get install -y redis-server
|
|
|
|
| 7 |
COPY custom.js /app/build/assets/
|
| 8 |
|
| 9 |
# 在</head>标签前添加custom.css引用
|
| 10 |
+
RUN sed -i 's|</head>|<link rel="stylesheet" href="/assets/custom.css"></head>|' /app/build/index.html && \
|
| 11 |
+
sed -i 's|</body>|<script src="/assets/custom.js"></script></body>|' /app/build/index.html
|
| 12 |
|
| 13 |
# 安装Redis
|
| 14 |
RUN apt-get update && apt-get install -y redis-server
|