kidcoconut commited on
Commit
6d0f735
·
1 Parent(s): c9cd3c7

updated 0.1.3 requirements.txt; confirmed works locally in docker

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -2
  2. requirements.txt +39 -20
Dockerfile CHANGED
@@ -61,8 +61,8 @@ CMD $HOME/app/scripts/docker/util_docker_preRun.sh
61
 
62
  #--- to tag the image prior to push to DockerHub; docker login and then register user/image:tag
63
  #--- to push this image to DockerHub, example based on the repo: kidcoconut73/img_stm_omdenasaudi_hcc
64
- # docker tag img_omdenasaudi_hcc:0.1 kidcoconut73/img_stm_omdenasaudi_hcc:demo
65
- # docker tag img_omdenasaudi_hcc:0.1 kidcoconut73/img_stm_omdenasaudi_hcc:0.1
66
  # docker push kidcoconut73/img_stm_omdenasaudi_hcc:demo
67
 
68
  #--- to run the container from the image; specific port mapping (-p) vs any available port mapping (-P)
@@ -70,6 +70,9 @@ CMD $HOME/app/scripts/docker/util_docker_preRun.sh
70
  # docker run -p 49400:39400 -p 49500:39500 --name ctr_stmOmdenaSaudiHcc img_stm_omdenasaudi_hcc:0.1
71
  # docker run -P --name ctr_stmOmdenaHcc img_stm_omdenasaudi_hcc:0.1 #--- open all ports defined by Docker EXPOSE
72
 
 
 
 
73
  #--- ISSUE: uvicorn bug does not allow ctl-C break of fastapi through terminal
74
  #--- WORKAROUND: you have to run a docker or docker compose kill cmd; eg docker kill <ctr_name>
75
 
 
61
 
62
  #--- to tag the image prior to push to DockerHub; docker login and then register user/image:tag
63
  #--- to push this image to DockerHub, example based on the repo: kidcoconut73/img_stm_omdenasaudi_hcc
64
+ # docker tag img_stm_omdenasaudi_hcc:0.1 kidcoconut73/img_stm_omdenasaudi_hcc:demo
65
+ # docker tag img_stm_omdenasaudi_hcc:0.1 kidcoconut73/img_stm_omdenasaudi_hcc:0.1
66
  # docker push kidcoconut73/img_stm_omdenasaudi_hcc:demo
67
 
68
  #--- to run the container from the image; specific port mapping (-p) vs any available port mapping (-P)
 
70
  # docker run -p 49400:39400 -p 49500:39500 --name ctr_stmOmdenaSaudiHcc img_stm_omdenasaudi_hcc:0.1
71
  # docker run -P --name ctr_stmOmdenaHcc img_stm_omdenasaudi_hcc:0.1 #--- open all ports defined by Docker EXPOSE
72
 
73
+ #--- to run the container in interactive mode (local debug)
74
+ # docker run -it -p 49400:39400 -p 49500:39500 --name ctr_stmOmdenaSaudiHcc_013 img_stm_omdenasaudi_hcc:0.1.3
75
+
76
  #--- ISSUE: uvicorn bug does not allow ctl-C break of fastapi through terminal
77
  #--- WORKAROUND: you have to run a docker or docker compose kill cmd; eg docker kill <ctr_name>
78
 
requirements.txt CHANGED
@@ -1,41 +1,56 @@
 
1
  #--- 20230530: commented out all secondary packages as they were causing the huggingfaceSpace to fail
2
 
3
- #altair==4.2.2
4
- #anyio==3.6.2
5
- #attrs==23.1.0
6
  #backports.zoneinfo==0.2.1
 
7
  #blinker==1.6.2
8
  #cachetools==5.3.0
9
  #certifi==2023.5.7
10
  #charset-normalizer==3.1.0
11
  #click==8.1.3
 
12
  #decorator==5.1.1
13
  #entrypoints==0.4
14
- fastapi==0.95.2
 
 
15
  #gitdb==4.0.10
16
  #git-lfs
 
17
  #GitPython==3.1.31
18
- grad-cam
19
  #h11==0.14.0
20
  #idna==3.4
21
  #importlib-metadata==6.6.0
22
  #importlib-resources==5.12.0
23
  #ipython-genutils==0.2.0
24
- Jinja2==3.1.2
25
- joblib==1.2.0
26
- jsonschema==4.17.3
 
 
27
  #markdown-it-py==2.2.0
28
  #MarkupSafe==2.1.2
 
 
 
29
  #mdurl==0.1.2
30
- numpy==1.24.3
 
31
  #packaging==23.1
32
- pandas==1.5.3
 
33
  #Pillow==9.5.0
 
34
  #pkgutil_resolve_name==1.3.10
35
- plotly==5.14.1
36
- #protobuf==3.20.3
37
- #pyarrow==12.0.0
38
- #pydantic==1.10.8
 
39
  #pydeck==0.8.1b0
40
  #Pygments==2.15.1
41
  #Pympler==1.0.1
@@ -44,25 +59,29 @@ plotly==5.14.1
44
  #pytz==2023.3
45
  #PyYAML==6.0
46
  #requests==2.31.0
47
- #rich==13.3.5
 
48
  scikit-learn==1.1.1
49
- #scipy==1.10.1
50
- #six==1.16.0
51
  #smmap==5.0.0
52
  #sniffio==1.3.0
53
  #starlette==0.27.0
54
  streamlit==1.24.0
 
55
  #tenacity==8.2.2
56
  #threadpoolctl==3.1.0
57
  #toml==0.10.2
58
  #toolz==0.12.0
59
- torch
60
- torchvision
 
61
  #tornado==6.3.2
 
62
  #typing_extensions==4.6.2
63
  #tzlocal==5.0.1
64
  #urllib3==2.0.2
65
- uvicorn==0.22.0
66
  #validators==0.20.0
67
  #watchdog==3.0.0
68
  #zipp==3.15.0
 
1
+ #--- 20240625: attempt to set the minimum version based on a working v0.1.2
2
  #--- 20230530: commented out all secondary packages as they were causing the huggingfaceSpace to fail
3
 
4
+ altair<=5.0.1
5
+ anyio<=3.7.1
6
+ attrs<=23.1.0
7
  #backports.zoneinfo==0.2.1
8
+
9
  #blinker==1.6.2
10
  #cachetools==5.3.0
11
  #certifi==2023.5.7
12
  #charset-normalizer==3.1.0
13
  #click==8.1.3
14
+
15
  #decorator==5.1.1
16
  #entrypoints==0.4
17
+
18
+ fastapi<=0.95.2
19
+
20
  #gitdb==4.0.10
21
  #git-lfs
22
+
23
  #GitPython==3.1.31
24
+ grad-cam<=1.4.8
25
  #h11==0.14.0
26
  #idna==3.4
27
  #importlib-metadata==6.6.0
28
  #importlib-resources==5.12.0
29
  #ipython-genutils==0.2.0
30
+
31
+ Jinja2<=3.1.2
32
+ joblib<=1.2.0
33
+ jsonschema<=4.17.3
34
+
35
  #markdown-it-py==2.2.0
36
  #MarkupSafe==2.1.2
37
+
38
+ matplotlib<=3.7.2
39
+
40
  #mdurl==0.1.2
41
+
42
+ numpy<=1.24.3
43
  #packaging==23.1
44
+
45
+ pandas<=1.5.3
46
  #Pillow==9.5.0
47
+ pip<=22.3.1
48
  #pkgutil_resolve_name==1.3.10
49
+
50
+ plotly<=5.14.1
51
+ #protobuf==4.23.3
52
+ #pyarrow==12.0.1
53
+ #pydantic==1.10.11
54
  #pydeck==0.8.1b0
55
  #Pygments==2.15.1
56
  #Pympler==1.0.1
 
59
  #pytz==2023.3
60
  #PyYAML==6.0
61
  #requests==2.31.0
62
+ #rich==13.4.2
63
+
64
  scikit-learn==1.1.1
65
+ #scipy<=1.11.1
66
+ #six<=1.16.0
67
  #smmap==5.0.0
68
  #sniffio==1.3.0
69
  #starlette==0.27.0
70
  streamlit==1.24.0
71
+
72
  #tenacity==8.2.2
73
  #threadpoolctl==3.1.0
74
  #toml==0.10.2
75
  #toolz==0.12.0
76
+
77
+ torch<=2.0.1
78
+ torchvision<=0.15.2
79
  #tornado==6.3.2
80
+
81
  #typing_extensions==4.6.2
82
  #tzlocal==5.0.1
83
  #urllib3==2.0.2
84
+ uvicorn<=0.22.0
85
  #validators==0.20.0
86
  #watchdog==3.0.0
87
  #zipp==3.15.0