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
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. README.md +1 -0
  3. 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 8000
 
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
- - 8000:8000
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