Spaces:
Sleeping
Sleeping
deploy
Browse files- README.md +9 -18
- last_depoy.txt +1 -1
README.md
CHANGED
@@ -16,8 +16,10 @@ experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](h
|
|
16 |
|
17 |
**THIS IS A WORK IN PROGRESS, DO NOT USE**
|
18 |
|
|
|
19 |
## Deployment options
|
20 |
|
|
|
21 |
### Hugging Face Spaces
|
22 |
|
23 |
When you pushing a repository to a Hugging Face Spaces with the option to deploy Dockerfile and include a Dockerfile, Hugging Face will start building and running your app in the Space.
|
@@ -48,35 +50,24 @@ git push --set-upstream gh main
|
|
48 |
git push --set-upstream hf main
|
49 |
```
|
50 |
|
|
|
51 |
### Runing the example in Docker
|
52 |
|
53 |
-
All in one:
|
54 |
|
55 |
```
|
56 |
bash deploy_docker.sh
|
57 |
```
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
1. Building the image:
|
62 |
-
|
63 |
-
```
|
64 |
-
docker build -f Dockerfile -t ambhtmx-card3d-image . &&
|
65 |
-
docker run -p 7860:7860 --name ambhtmx-card3d-container --rm ambhtmx-card3d-image
|
66 |
-
```
|
67 |
-
|
68 |
-
2. Check the app on http://127.0.0.1:7860
|
69 |
-
|
70 |
-
4. Stoping and removing the container:
|
71 |
|
72 |
```
|
73 |
-
docker container rm -f ambhtmx-card3d-container
|
|
|
|
|
|
|
74 |
```
|
75 |
|
76 |
-
5. Removing the image
|
77 |
-
```
|
78 |
-
docker images 'ambhtmx-card3d-image' -a -q
|
79 |
-
docker rmi ID
|
80 |
|
81 |
## Troubleshooting
|
82 |
|
|
|
16 |
|
17 |
**THIS IS A WORK IN PROGRESS, DO NOT USE**
|
18 |
|
19 |
+
|
20 |
## Deployment options
|
21 |
|
22 |
+
|
23 |
### Hugging Face Spaces
|
24 |
|
25 |
When you pushing a repository to a Hugging Face Spaces with the option to deploy Dockerfile and include a Dockerfile, Hugging Face will start building and running your app in the Space.
|
|
|
50 |
git push --set-upstream hf main
|
51 |
```
|
52 |
|
53 |
+
|
54 |
### Runing the example in Docker
|
55 |
|
56 |
+
All in one command:
|
57 |
|
58 |
```
|
59 |
bash deploy_docker.sh
|
60 |
```
|
61 |
|
62 |
+
It will run:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
```
|
65 |
+
(docker container rm -f ambhtmx-card3d-container || true)\
|
66 |
+
&& (docker rmi $(docker images --format '{{.Repository}}:{{.ID}}'| egrep 'ambhtmx-card3d' | cut -d':' -f2 | uniq) --force || true) \
|
67 |
+
&& docker build -f Dockerfile -t ambhtmx-card3d-image . \
|
68 |
+
&& docker run --env-file=.Renviron -p 7860:7860 --name ambhtmx-card3d-container --rm ambhtmx-card3d-image
|
69 |
```
|
70 |
|
|
|
|
|
|
|
|
|
71 |
|
72 |
## Troubleshooting
|
73 |
|
last_depoy.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
lun 05 ago 2024
|
|
|
1 |
+
lun 05 ago 2024 19:28:19 CEST
|