Spaces:
Runtime error
Runtime error
go2sujeet
commited on
Commit
·
2a87fbb
1
Parent(s):
5ba5608
Update ports and Dockerfile configuration
Browse files- Makefile +11 -2
- docker-compose.yml +1 -1
- dockerfile +1 -1
- src/main.py +1 -1
Makefile
CHANGED
@@ -1,13 +1,22 @@
|
|
1 |
say_hello:
|
2 |
echo "Hello, World!"
|
|
|
3 |
run_local:
|
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 |
-
|
12 |
-
docker-compose up
|
13 |
|
|
|
1 |
say_hello:
|
2 |
echo "Hello, World!"
|
3 |
+
|
4 |
run_local:
|
5 |
python src/main.py
|
6 |
+
|
7 |
build_docker_image:
|
8 |
docker build -t my-gradio-parking . --no-cache
|
9 |
+
|
10 |
+
run_docker_image:
|
11 |
+
docker-compose up
|
12 |
+
|
13 |
+
build_and_run_docker_image:
|
14 |
+
$(MAKE) build_docker_image
|
15 |
+
$(MAKE) run_docker_image
|
16 |
+
|
17 |
publish_docker_image:
|
18 |
docker-compose build publish2hub
|
19 |
docker push go2sujeet/my-gradio-parking:latest
|
20 |
|
21 |
+
|
|
|
22 |
|
docker-compose.yml
CHANGED
@@ -7,7 +7,7 @@ services:
|
|
7 |
args:
|
8 |
- NO_CACHE=1
|
9 |
ports:
|
10 |
-
- "
|
11 |
command: python src/main.py
|
12 |
publish2hub:
|
13 |
build:
|
|
|
7 |
args:
|
8 |
- NO_CACHE=1
|
9 |
ports:
|
10 |
+
- "7860:7860"
|
11 |
command: python src/main.py
|
12 |
publish2hub:
|
13 |
build:
|
dockerfile
CHANGED
@@ -14,7 +14,7 @@ COPY src/ src/
|
|
14 |
COPY data/ data/
|
15 |
|
16 |
#Expose the port
|
17 |
-
EXPOSE
|
18 |
|
19 |
# Set the entry point command
|
20 |
CMD ["python", "src/main.py"]
|
|
|
14 |
COPY data/ data/
|
15 |
|
16 |
#Expose the port
|
17 |
+
# EXPOSE 7860
|
18 |
|
19 |
# Set the entry point command
|
20 |
CMD ["python", "src/main.py"]
|
src/main.py
CHANGED
@@ -39,4 +39,4 @@ with gr.Blocks() as app:
|
|
39 |
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
-
app.launch(server_port=
|
|
|
39 |
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
+
app.launch(server_port=7860, debug=True, server_name="0.0.0.0")
|