try docker sdk
Browse files- Dockerfile +11 -0
- README.md +1 -2
Dockerfile
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM busybox:latest
|
2 |
+
ENV PORT=7860
|
3 |
+
|
4 |
+
ADD index.html /www/index.html
|
5 |
+
|
6 |
+
# EXPOSE $PORT
|
7 |
+
|
8 |
+
HEALTHCHECK CMD nc -z localhost $PORT
|
9 |
+
|
10 |
+
# Create a basic webserver and run it until the container is stopped
|
11 |
+
CMD echo "httpd started" && trap "exit 0;" TERM INT; httpd -v -p $PORT -h /www -f & wait
|
README.md
CHANGED
@@ -3,8 +3,7 @@ title: JVCGPT
|
|
3 |
emoji: 🤣
|
4 |
colorFrom: blue
|
5 |
colorTo: blue
|
6 |
-
sdk:
|
7 |
-
app_file: ./dist/index.html
|
8 |
pinned: false
|
9 |
license: mit
|
10 |
---
|
|
|
3 |
emoji: 🤣
|
4 |
colorFrom: blue
|
5 |
colorTo: blue
|
6 |
+
sdk: docker
|
|
|
7 |
pinned: false
|
8 |
license: mit
|
9 |
---
|