sudo-paras-shah commited on
Commit
6b18b7c
·
1 Parent(s): 3ebd650

Old reliable requirements.txt

Browse files
Files changed (3) hide show
  1. Dockerfile +12 -2
  2. environment.yml +0 -170
  3. requirements.txt +1 -1
Dockerfile CHANGED
@@ -9,9 +9,19 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- COPY environment.yml ./
13
  COPY src/ ./src/
14
 
15
- RUN conda env create -f environment.yml
 
 
 
16
 
 
 
 
 
 
 
 
17
  ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "appenv", "streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ COPY requirements.txt ./
13
  COPY src/ ./src/
14
 
15
+ # Create environment and install dependencies
16
+ RUN conda create -n appenv python=3.12.9 -y
17
+ RUN conda run -n appenv conda install --file requirements.txt -y
18
+ RUN conda run -n appenv pip install scikit-learn streamlit
19
 
20
+ # Expose Streamlit port
21
+ EXPOSE 8501
22
+
23
+ # Healthcheck
24
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
25
+
26
+ # Set entrypoint using conda run
27
  ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "appenv", "streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
environment.yml DELETED
@@ -1,170 +0,0 @@
1
- name: webapp
2
- channels:
3
- - https://repo.anaconda.com/pkgs/main
4
- - https://repo.anaconda.com/pkgs/r
5
- dependencies:
6
- - python=3.12.9
7
- - defaults/linux-64::_libgcc_mutex==0.1=main
8
- - defaults/linux-64::blas==1.0=mkl
9
- - defaults/linux-64::ca-certificates==2025.2.25=h06a4308_0
10
- - defaults/linux-64::ld_impl_linux-64==2.40=h12ee557_0
11
- - defaults/linux-64::libgfortran5==11.2.0=h1234567_1
12
- - defaults/linux-64::libstdcxx-ng==11.2.0=h1234567_1
13
- - defaults/noarch::tzdata==2025b=h04d1e81_0
14
- - defaults/linux-64::libgfortran-ng==11.2.0=h00389a5_1
15
- - defaults/linux-64::libgomp==11.2.0=h1234567_1
16
- - defaults/linux-64::_openmp_mutex==5.1=1_gnu
17
- - defaults/linux-64::libgcc-ng==11.2.0=h1234567_1
18
- - defaults/linux-64::aom==3.6.0=h6a678d5_0
19
- - defaults/linux-64::bzip2==1.0.8=h5eee18b_6
20
- - defaults/linux-64::c-ares==1.19.1=h5eee18b_0
21
- - defaults/linux-64::dav1d==1.2.1=h5eee18b_0
22
- - defaults/linux-64::eigen==3.4.0=hdb19cb5_0
23
- - defaults/linux-64::expat==2.7.1=h6a678d5_0
24
- - defaults/linux-64::flatbuffers==24.3.25=h6a678d5_0
25
- - defaults/linux-64::giflib==5.2.2=h5eee18b_0
26
- - defaults/linux-64::graphite2==1.3.14=h295c915_1
27
- - defaults/linux-64::icu==73.1=h6a678d5_0
28
- - defaults/linux-64::jpeg==9e=h5eee18b_3
29
- - defaults/linux-64::lame==3.100=h7b6447c_0
30
- - defaults/linux-64::lerc==4.0.0=h6a678d5_0
31
- - defaults/linux-64::libabseil==20240116.2=cxx17_h6a678d5_0
32
- - defaults/linux-64::libdeflate==1.22=h5eee18b_0
33
- - defaults/linux-64::libev==4.33=h7f8727e_1
34
- - defaults/linux-64::libffi==3.4.4=h6a678d5_1
35
- - defaults/linux-64::libiconv==1.16=h5eee18b_3
36
- - defaults/linux-64::libogg==1.3.5=h27cfd23_1
37
- - defaults/linux-64::libopus==1.3.1=h5eee18b_1
38
- - defaults/linux-64::libuuid==1.41.5=h5eee18b_0
39
- - defaults/linux-64::libvpx==1.13.1=h6a678d5_0
40
- - defaults/linux-64::libwebp-base==1.3.2=h5eee18b_1
41
- - defaults/linux-64::lz4-c==1.9.4=h6a678d5_1
42
- - defaults/linux-64::ncurses==6.4=h6a678d5_0
43
- - defaults/linux-64::openh264==2.1.1=h4ff587b_0
44
- - defaults/linux-64::openssl==3.0.16=h5eee18b_0
45
- - defaults/linux-64::pixman==0.40.0=h7f8727e_1
46
- - defaults/linux-64::pthread-stubs==0.3=h0ce48e5_1
47
- - defaults/linux-64::re2==2022.04.01=h295c915_0
48
- - defaults/linux-64::snappy==1.2.1=h6a678d5_0
49
- - defaults/linux-64::tbb==2021.8.0=hdb19cb5_0
50
- - defaults/linux-64::xorg-libxau==1.0.12=h9b100fa_0
51
- - defaults/linux-64::xorg-libxdmcp==1.1.5=h9b100fa_0
52
- - defaults/linux-64::xorg-xorgproto==2024.1=h5eee18b_1
53
- - defaults/linux-64::xz==5.6.4=h5eee18b_1
54
- - defaults/linux-64::zlib==1.2.13=h5eee18b_1
55
- - defaults/linux-64::intel-openmp==2023.1.0=hdb19cb5_46306
56
- - defaults/linux-64::libcups==2.4.2=h2d74bed_1
57
- - defaults/linux-64::libedit==3.1.20230828=h5eee18b_0
58
- - defaults/linux-64::libllvm14==14.0.6=hecde1de_4
59
- - defaults/linux-64::libnghttp2==1.57.0=h2d74bed_0
60
- - defaults/linux-64::libpng==1.6.39=h5eee18b_0
61
- - defaults/linux-64::libprotobuf==4.25.3=he621ea3_0
62
- - defaults/linux-64::libssh2==1.11.1=h251f7ec_0
63
- - defaults/linux-64::libvorbis==1.3.7=h7b6447c_0
64
- - defaults/linux-64::libxcb==1.17.0=h9b100fa_0
65
- - defaults/linux-64::libxml2==2.13.8=hfdd30dd_0
66
- - defaults/linux-64::pcre2==10.42=hebb0a14_1
67
- - defaults/linux-64::readline==8.2=h5eee18b_0
68
- - defaults/linux-64::tk==8.6.14=h39e8969_0
69
- - defaults/linux-64::zstd==1.5.6=hc292b87_0
70
- - defaults/linux-64::freetype==2.13.3=h4a9f257_0
71
- - defaults/linux-64::krb5==1.20.1=h143b758_1
72
- - defaults/linux-64::libarchive==3.7.7=hfab0078_0
73
- - defaults/linux-64::libclang13==14.0.6=default_he11475f_2
74
- - defaults/linux-64::libglib==2.78.4=hdc74915_0
75
- - defaults/linux-64::libgrpc==1.62.2=h2d74bed_0
76
- - defaults/linux-64::libtheora==1.1.1=h7f8727e_3
77
- - defaults/linux-64::libtiff==4.5.1=hffd6297_1
78
- - defaults/linux-64::mkl==2023.1.0=h213fc3f_46344
79
- - defaults/linux-64::sqlite==3.45.3=h5eee18b_0
80
- - defaults/linux-64::xorg-libx11==1.8.12=h9b100fa_1
81
- - defaults/linux-64::cyrus-sasl==2.1.28=h52b45da_1
82
- - defaults/linux-64::fontconfig==2.14.1=h55d465d_3
83
- - defaults/linux-64::glib-tools==2.78.4=h6a678d5_0
84
- - defaults/linux-64::lcms2==2.16=hb9589c4_0
85
- - defaults/linux-64::libclang==14.0.6=default_hc6dbbc7_2
86
- - defaults/linux-64::libcurl==8.12.1=hc9e6f67_0
87
- - defaults/linux-64::libwebp==1.3.2=h11a3e52_0
88
- - defaults/linux-64::openjpeg==2.5.2=he7f1fd0_0
89
- - defaults/linux-64::python==3.12.9=h5148396_0
90
- - defaults/linux-64::xkeyboard-config==2.44=h5eee18b_0
91
- - defaults/linux-64::absl-py==2.1.0=py312h06a4308_0
92
- - defaults/linux-64::brotli-python==1.0.9=py312h6a678d5_9
93
- - defaults/linux-64::certifi==2025.4.26=py312h06a4308_0
94
- - defaults/noarch::charset-normalizer==3.3.2=pyhd3eb1b0_0
95
- - defaults/noarch::cycler==0.11.0=pyhd3eb1b0_0
96
- - defaults/noarch::gast==0.5.3=pyhd3eb1b0_0
97
- - defaults/linux-64::glib==2.78.4=h6a678d5_0
98
- - defaults/linux-64::grpcio==1.62.2=py312h6a678d5_0
99
- - defaults/linux-64::hdf5==1.14.5=h2b7332f_2
100
- - defaults/linux-64::idna==3.7=py312h06a4308_0
101
- - defaults/linux-64::kiwisolver==1.4.8=py312h6a678d5_0
102
- - defaults/linux-64::leptonica==1.82.0=h42c8aad_2
103
- - defaults/linux-64::libxkbcommon==1.9.1=h69220b7_0
104
- - defaults/linux-64::markdown==3.8=py312h06a4308_0
105
- - defaults/linux-64::markupsafe==3.0.2=py312h5eee18b_0
106
- - defaults/linux-64::mdurl==0.1.0=py312h06a4308_0
107
- - defaults/linux-64::mkl-service==2.4.0=py312h5eee18b_2
108
- - defaults/linux-64::mysql==8.4.0=h29a9f33_1
109
- - defaults/linux-64::namex==0.0.7=py312h06a4308_0
110
- - defaults/linux-64::openldap==2.6.4=h42fbc30_0
111
- - defaults/linux-64::packaging==24.2=py312h06a4308_0
112
- - defaults/linux-64::pillow==11.1.0=py312hcea889d_0
113
- - defaults/linux-64::ply==3.11=py312h06a4308_1
114
- - defaults/linux-64::protobuf==4.25.3=py312he36ed58_1
115
- - defaults/linux-64::pygments==2.19.1=py312h06a4308_0
116
- - defaults/linux-64::pyparsing==3.2.0=py312h06a4308_0
117
- - defaults/linux-64::pyqt5-sip==12.13.0=py312h5eee18b_1
118
- - defaults/linux-64::pysocks==1.7.1=py312h06a4308_0
119
- - defaults/linux-64::python-flatbuffers==24.3.25=py312h06a4308_0
120
- - defaults/linux-64::setuptools==78.1.1=py312h06a4308_0
121
- - defaults/linux-64::six==1.17.0=py312h06a4308_0
122
- - defaults/linux-64::tensorboard-data-server==0.7.0=py312h52d8a92_1
123
- - defaults/linux-64::termcolor==2.1.0=py312h06a4308_0
124
- - defaults/linux-64::tornado==6.4.2=py312h5eee18b_0
125
- - defaults/linux-64::tqdm==4.67.1=py312he106c6f_0
126
- - defaults/linux-64::typing_extensions==4.12.2=py312h06a4308_0
127
- - defaults/linux-64::unicodedata2==15.1.0=py312h5eee18b_1
128
- - defaults/linux-64::wheel==0.45.1=py312h06a4308_0
129
- - defaults/linux-64::wrapt==1.17.0=py312h5eee18b_0
130
- - defaults/noarch::astunparse==1.6.3=py_0
131
- - defaults/linux-64::cairo==1.16.0=hb05425b_5
132
- - defaults/linux-64::dbus==1.13.18=hb2f20db_0
133
- - defaults/linux-64::fonttools==4.55.3=py312h5eee18b_0
134
- - defaults/noarch::google-pasta==0.2.0=pyhd3eb1b0_0
135
- - defaults/linux-64::gstreamer==1.14.1=h5eee18b_1
136
- - defaults/linux-64::libpq==17.4=hdbd6064_0
137
- - defaults/linux-64::markdown-it-py==2.2.0=py312h06a4308_1
138
- - defaults/linux-64::numpy-base==1.26.4=py312h0da6c21_0
139
- - defaults/noarch::pip==25.1=pyhc872135_2
140
- - defaults/linux-64::python-dateutil==2.9.0post0=py312h06a4308_2
141
- - defaults/linux-64::sip==6.7.12=py312h6a678d5_1
142
- - defaults/linux-64::tesseract==5.2.0=h6a678d5_2
143
- - defaults/linux-64::typing-extensions==4.12.2=py312h06a4308_0
144
- - defaults/linux-64::urllib3==2.3.0=py312h06a4308_0
145
- - defaults/linux-64::werkzeug==3.1.3=py312h06a4308_0
146
- - defaults/linux-64::gst-plugins-base==1.14.1=h6a678d5_1
147
- - defaults/linux-64::harfbuzz==10.2.0=hf296adc_0
148
- - defaults/linux-64::optree==0.14.1=py312hdb19cb5_0
149
- - defaults/linux-64::requests==2.32.3=py312h06a4308_1
150
- - defaults/linux-64::rich==13.9.4=py312h06a4308_0
151
- - defaults/linux-64::ffmpeg==6.1.1=h2a67f75_3
152
- - defaults/linux-64::qt-main==5.15.2=hb6262e9_12
153
- - defaults/linux-64::pyqt==5.15.10=py312h6a678d5_1
154
- - defaults/linux-64::contourpy==1.3.1=py312hdb19cb5_0
155
- - defaults/linux-64::h5py==3.12.1=py312h5842655_1
156
- - defaults/linux-64::matplotlib==3.10.0=py312h06a4308_0
157
- - defaults/linux-64::matplotlib-base==3.10.0=py312hbfdbfaf_0
158
- - defaults/linux-64::mkl_fft==1.3.11=py312h5eee18b_0
159
- - defaults/linux-64::mkl_random==1.2.8=py312h526ad5a_0
160
- - defaults/linux-64::numpy==1.26.4=py312hc5e2394_0
161
- - defaults/linux-64::ml_dtypes==0.4.1=py312hc74f9fe_0
162
- - defaults/linux-64::opencv==4.10.0=py312hbc97090_2
163
- - defaults/noarch::opt_einsum==3.3.0=pyhd3eb1b0_1
164
- - defaults/linux-64::scipy==1.15.2=py312h23a989f_1
165
- - defaults/linux-64::tensorboard==2.17.0=py312h06a4308_0
166
- - defaults/linux-64::keras==3.6.0=py312h06a4308_0
167
- - defaults/linux-64::tensorflow-base==2.17.0=py312h06a4308_0
168
- - defaults/linux-64::tensorflow-estimator==2.17.0=py312h06a4308_0
169
- - defaults/linux-64::tensorflow==2.17.0=py312h06a4308_0
170
- prefix: /home/paras/miniconda3/envs/webapp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
requirements.txt CHANGED
@@ -1,7 +1,7 @@
1
  streamlit
2
  streamlit-webrtc
3
  numpy
4
- tensorflow-gpu
5
  keras
6
  Pillow
7
  opencv-python
 
1
  streamlit
2
  streamlit-webrtc
3
  numpy
4
+ tensorflow
5
  keras
6
  Pillow
7
  opencv-python