File size: 1,307 Bytes
9b1bf0c
 
 
 
 
 
 
f267925
 
 
9b1bf0c
 
 
 
 
 
 
 
 
 
 
 
 
9a53203
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#--- build the image from dockerHub
FROM kidcoconut73/img_stm_omdenasaudi_hcc:0.1.4
#FROM kidcoconut73/img_stm_omdenasaudi_hcc:demo


#--- for streamlit;  external 49400;  internal 39400
#--- for fastapi;  external 49500;  internal 39500
#--- for huggingface;  assume 1:1 mapping between internal and external ports;  and only one port can truly be exposed
EXPOSE 39400
EXPOSE 39500

#--- build/rebuild the image from an alt Dockerfile
#	docker build -t foo/bar -f /path/to/Dockerfile /path/to/
#	docker build -t img_stm_omdenasaudi_hcc:0.1.4 -f Dockerfile.hub ./

#--- create a container from an image (without running it)
#   docker create -it -p 49400:39400 -p 49500:39500 --name ctr_stmOmdenaHcc_demo kidcoconut73/img_stm_omdenasaudi_hcc:demo

#--- to run the container (interactive) from the image;  specific port mapping (-p) vs any available port mapping (-P)
#   docker run -it -p 49400:39400 -p 49500:39500 --name ctr_stmOmdenaHcc_demo img_stm_omdenasaudi_hcc:0.1.4                    
#   docker run -it -p 49400:39400 -p 49500:39500 --name ctr_stmOmdenaHcc_demo kidcoconut73/img_stm_omdenasaudi_hcc:demo   

#--- start an existing container
#   docker start -it ctr_stmOmdenaHcc_demo

#--- deploy to huggingspace
#   overwrite Dockerfile;  cp Dockerfile.hug Dockerfile
#   push to Huggingspace;