kidcoconut commited on
Commit
f267925
1 Parent(s): 51dee54

debug: adjust Dockerfile exposed ports for huggingface; assume a simple 1:1 mapping of external and internal ports; and only a single port

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -1
  2. Dockerfile.hug +3 -1
  3. README.md +1 -1
Dockerfile CHANGED
@@ -5,7 +5,9 @@ FROM kidcoconut73/img_stm_omdenasaudi_hcc:0.1.4
5
 
6
  #--- for streamlit; external 49400; internal 39400
7
  #--- for fastapi; external 49500; internal 39500
8
-
 
 
9
 
10
  #--- build/rebuild the image from an alt Dockerfile
11
  # docker build -t foo/bar -f /path/to/Dockerfile /path/to/
 
5
 
6
  #--- for streamlit; external 49400; internal 39400
7
  #--- for fastapi; external 49500; internal 39500
8
+ #--- for huggingface; assume 1:1 mapping between internal and external ports; and only one port can truly be exposed
9
+ EXPOSE 39400
10
+ EXPOSE 39500
11
 
12
  #--- build/rebuild the image from an alt Dockerfile
13
  # docker build -t foo/bar -f /path/to/Dockerfile /path/to/
Dockerfile.hug CHANGED
@@ -5,7 +5,9 @@ FROM kidcoconut73/img_stm_omdenasaudi_hcc:0.1.4
5
 
6
  #--- for streamlit; external 49400; internal 39400
7
  #--- for fastapi; external 49500; internal 39500
8
-
 
 
9
 
10
  #--- build/rebuild the image from an alt Dockerfile
11
  # docker build -t foo/bar -f /path/to/Dockerfile /path/to/
 
5
 
6
  #--- for streamlit; external 49400; internal 39400
7
  #--- for fastapi; external 49500; internal 39500
8
+ #--- for huggingface; assume 1:1 mapping between internal and external ports; and only one port can truly be exposed
9
+ EXPOSE 39400
10
+ EXPOSE 39500
11
 
12
  #--- build/rebuild the image from an alt Dockerfile
13
  # docker build -t foo/bar -f /path/to/Dockerfile /path/to/
README.md CHANGED
@@ -6,7 +6,7 @@ colorTo: green
6
  sdk: docker
7
  pinned: false
8
  license: mit
9
- app_port: 49400
10
  ---
11
 
12
  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: 39400
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference