Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
FROM node:20
|
2 |
|
3 |
-
|
|
|
4 |
|
5 |
-
#
|
6 |
-
|
|
|
|
|
|
|
|
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"]
|