deeme commited on
Commit
400e08a
·
verified ·
1 Parent(s): cc1ad01

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,6 +1,10 @@
1
  FROM node:20
2
 
3
- RUN apt-get update && apt-get install -y curl
 
4
 
5
- # 直接跳转到新网址
6
- CMD ["sh", "-c", "exec curl -L https://comic.168369.xyz/"]
 
 
 
 
1
  FROM node:20
2
 
3
+ # 安装 http-server
4
+ RUN npm install -g http-server
5
 
6
+ # 创建一个简单的 HTML 文件来实现跳转
7
+ RUN echo '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=https://comic.168369.xyz/"></head><body></body></html>' > /index.html
8
+
9
+ # 启动 http-server 以提供该文件
10
+ CMD ["http-server", "-p", "3000", "-c-1"]