kevin1207 commited on
Commit
5fbc36c
·
verified ·
1 Parent(s): 5f19298

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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