Spaces:
Runtime error
Runtime error
zhang-wei-jian
commited on
Commit
•
703891d
1
Parent(s):
623d70e
init
Browse files- .dockerignore +5 -0
- Dockerfile +25 -0
- README.md +1 -0
- start.sh +4 -0
.dockerignore
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
node_modules
|
2 |
+
Dockerfile
|
3 |
+
.dockerignore
|
4 |
+
.git
|
5 |
+
.gitignore
|
Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# FROM pch18/baota:latest
|
2 |
+
|
3 |
+
# COPY start.sh /start.sh
|
4 |
+
|
5 |
+
# COPY --chmod=755 start.sh /start.sh
|
6 |
+
|
7 |
+
# RUN ["ls", "-l", "/start.sh"] # 确认权限已经为 -rwxr-xr-x
|
8 |
+
|
9 |
+
# HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:8888/ || exit 1
|
10 |
+
|
11 |
+
|
12 |
+
FROM ubuntu:20.04
|
13 |
+
|
14 |
+
RUN apt update && apt install -y sysvinit-tools
|
15 |
+
|
16 |
+
# 安装宝塔
|
17 |
+
RUN install_baota.sh
|
18 |
+
|
19 |
+
# 注册宝塔服务
|
20 |
+
RUN bt install
|
21 |
+
|
22 |
+
COPY start.sh /start.sh
|
23 |
+
RUN chmod +x /start.sh
|
24 |
+
|
25 |
+
CMD ["/start.sh"]
|
README.md
CHANGED
@@ -5,6 +5,7 @@ colorFrom: gray
|
|
5 |
colorTo: red
|
6 |
sdk: docker
|
7 |
pinned: false
|
|
|
8 |
---
|
9 |
|
10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
5 |
colorTo: red
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
+
app_port: 8888
|
9 |
---
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
start.sh
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 启动脚本
|
2 |
+
# /start.sh
|
3 |
+
#!/bin/bash
|
4 |
+
service bt start
|