Spaces:
Sleeping
Sleeping
LVKinyanjui
commited on
Commit
•
5326ac9
1
Parent(s):
c336e96
Reconfigured port numbers to have app work on hf spaces and locally with compose
Browse files- Dockerfile +1 -1
- README.md +1 -0
- compose.yaml +1 -3
Dockerfile
CHANGED
@@ -16,4 +16,4 @@ COPY . .
|
|
16 |
EXPOSE 8000
|
17 |
|
18 |
# Run the application.
|
19 |
-
CMD streamlit run app.py --server.port
|
|
|
16 |
EXPOSE 8000
|
17 |
|
18 |
# Run the application.
|
19 |
+
CMD streamlit run app.py --server.port 7860
|
README.md
CHANGED
@@ -6,6 +6,7 @@ colorTo: indigo
|
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: mit
|
|
|
9 |
---
|
10 |
|
11 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
license: mit
|
9 |
+
app_port: 7860
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
compose.yaml
CHANGED
@@ -14,8 +14,7 @@ services:
|
|
14 |
volumes:
|
15 |
- .:/app
|
16 |
ports:
|
17 |
-
-
|
18 |
-
|
19 |
# The commented out section below is an example of how to define a PostgreSQL
|
20 |
# database that your application can use. `depends_on` tells Docker Compose to
|
21 |
# start the database before your application. The `db-data` volume persists the
|
@@ -48,4 +47,3 @@ services:
|
|
48 |
# secrets:
|
49 |
# db-password:
|
50 |
# file: db/password.txt
|
51 |
-
|
|
|
14 |
volumes:
|
15 |
- .:/app
|
16 |
ports:
|
17 |
+
- 7860:8000
|
|
|
18 |
# The commented out section below is an example of how to define a PostgreSQL
|
19 |
# database that your application can use. `depends_on` tells Docker Compose to
|
20 |
# start the database before your application. The `db-data` volume persists the
|
|
|
47 |
# secrets:
|
48 |
# db-password:
|
49 |
# file: db/password.txt
|
|