Spaces:
Runtime error
Runtime error
go2sujeet
commited on
Commit
·
965657b
1
Parent(s):
6c2f343
Add docker image publishing and update docker run command
Browse files- Makefile +6 -1
- docker-compose.yml +16 -0
Makefile
CHANGED
@@ -4,5 +4,10 @@ run_local:
|
|
4 |
python src/main.py
|
5 |
build_docker_image:
|
6 |
docker build -t my-gradio-parking . --no-cache
|
|
|
|
|
|
|
|
|
7 |
run_docker_image:
|
8 |
-
docker
|
|
|
|
4 |
python src/main.py
|
5 |
build_docker_image:
|
6 |
docker build -t my-gradio-parking . --no-cache
|
7 |
+
publish_docker_image:
|
8 |
+
docker-compose build publish2hub
|
9 |
+
docker push go2sujeet/my-gradio-parking:latest
|
10 |
+
|
11 |
run_docker_image:
|
12 |
+
docker-compose up
|
13 |
+
|
docker-compose.yml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '3.8'
|
2 |
+
services:
|
3 |
+
gradio-parking:
|
4 |
+
build:
|
5 |
+
context: .
|
6 |
+
dockerfile: Dockerfile
|
7 |
+
args:
|
8 |
+
- NO_CACHE=1
|
9 |
+
ports:
|
10 |
+
- "8080:8080"
|
11 |
+
command: python src/main.py
|
12 |
+
publish2hub:
|
13 |
+
build:
|
14 |
+
context: .
|
15 |
+
dockerfile: Dockerfile
|
16 |
+
image: go2sujeet/my-gradio-parking:latest
|