zhang-wei-jian commited on
Commit
5b4e781
1 Parent(s): b55bfc6
Files changed (4) hide show
  1. .dockerignore +5 -0
  2. Dockerfile +9 -0
  3. README.md +1 -0
  4. start.sh +2 -0
.dockerignore ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ node_modules
2
+ Dockerfile
3
+ .dockerignore
4
+ .git
5
+ .gitignore
Dockerfile ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
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
README.md CHANGED
@@ -5,6 +5,7 @@ colorFrom: blue
5
  colorTo: yellow
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: yellow
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,2 @@
 
 
 
1
+ #!/bin/bash
2
+ /usr/local/baota/server/panel/init.sh start