Spaces:
Sleeping
Sleeping
epii-1
commited on
Commit
·
004f3e4
1
Parent(s):
ded27fa
222222
Browse files- Dockerfile +3 -0
- index.html +11 -0
Dockerfile
CHANGED
@@ -7,7 +7,10 @@ RUN mkdir -p /var/cache/nginx/client_temp && \
|
|
7 |
|
8 |
# 复制自定义的 Nginx 配置文件
|
9 |
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
|
10 |
|
|
|
11 |
# 设置工作目录
|
12 |
WORKDIR /usr/share/nginx/html
|
13 |
|
|
|
7 |
|
8 |
# 复制自定义的 Nginx 配置文件
|
9 |
COPY nginx.conf /etc/nginx/nginx.conf
|
10 |
+
# 复制自定义的 index.html 页面
|
11 |
+
COPY index.html /usr/share/nginx/html/index.html
|
12 |
|
13 |
+
# 设置工作目录
|
14 |
# 设置工作目录
|
15 |
WORKDIR /usr/share/nginx/html
|
16 |
|
index.html
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Welcome to Nginx on Hugging Face Spaces</title>
|
6 |
+
</head>
|
7 |
+
<body>
|
8 |
+
<h1>Hello from Nginx!</h1>
|
9 |
+
<p>This is the default index page served by Nginx in a Hugging Face Space.</p>
|
10 |
+
</body>
|
11 |
+
</html>
|