Spaces:
Running
Running
Taimur Khan commited on
Commit ·
dc1b145
1
Parent(s): 57e3371
source
Browse files- Dockerfile +16 -5
- requirements.txt +8 -244
Dockerfile
CHANGED
|
@@ -1,12 +1,23 @@
|
|
| 1 |
FROM python:3.12.3-slim
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
COPY requirements.txt .
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
COPY . /app
|
| 12 |
WORKDIR /app
|
|
|
|
| 1 |
FROM python:3.12.3-slim
|
| 2 |
|
| 3 |
+
# install GDAL system libs & dev headers (matching what you want to install)
|
| 4 |
+
RUN apt-get update && \
|
| 5 |
+
apt-get install -y \
|
| 6 |
+
gdal-bin \
|
| 7 |
+
libgdal-dev \
|
| 8 |
+
build-essential \
|
| 9 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
+
|
| 11 |
+
# GDAL environment variable so pip picks correct gdal-config
|
| 12 |
+
ENV GDAL_VERSION=3.10
|
| 13 |
+
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
|
| 14 |
+
ENV C_INCLUDE_PATH=/usr/include/gdal
|
| 15 |
|
| 16 |
COPY requirements.txt .
|
| 17 |
+
|
| 18 |
+
# install requirements AFTER libgdal-dev is available
|
| 19 |
+
RUN pip install --upgrade pip \
|
| 20 |
+
&& pip install --no-cache-dir -r requirements.txt
|
| 21 |
|
| 22 |
COPY . /app
|
| 23 |
WORKDIR /app
|
requirements.txt
CHANGED
|
@@ -1,244 +1,8 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
asn1crypto==1.5.1
|
| 10 |
-
asttokens==3.0.0
|
| 11 |
-
atomicwrites==1.4.1
|
| 12 |
-
attrs==23.2.0
|
| 13 |
-
azure-core==1.35.1
|
| 14 |
-
azure-datalake-store==1.0.1
|
| 15 |
-
azure-identity==1.25.0
|
| 16 |
-
azure-storage-blob==12.26.0
|
| 17 |
-
Babel==2.15.0
|
| 18 |
-
backports.entry-points-selectable==1.3.0
|
| 19 |
-
backports.functools-lru-cache==2.0.0
|
| 20 |
-
beniget==0.4.1
|
| 21 |
-
bitarray==2.9.2
|
| 22 |
-
bitstring==4.2.3
|
| 23 |
-
black==25.9.0
|
| 24 |
-
blist==1.3.6
|
| 25 |
-
boto3==1.40.40
|
| 26 |
-
botocore==1.40.40
|
| 27 |
-
Bottleneck==1.3.8
|
| 28 |
-
CacheControl==0.14.0
|
| 29 |
-
cachetools==5.5.2
|
| 30 |
-
cachy==0.3.0
|
| 31 |
-
certifi==2024.6.2
|
| 32 |
-
cffi==1.16.0
|
| 33 |
-
chardet==5.2.0
|
| 34 |
-
charset-normalizer==3.3.2
|
| 35 |
-
cleo==2.1.0
|
| 36 |
-
click==8.1.7
|
| 37 |
-
click-plugins==1.1.1
|
| 38 |
-
cligj==0.7.2
|
| 39 |
-
cloudpickle==3.0.0
|
| 40 |
-
colorama==0.4.6
|
| 41 |
-
comm==0.2.2
|
| 42 |
-
commonmark==0.9.1
|
| 43 |
-
contourpy==1.3.2
|
| 44 |
-
crashtest==0.4.1
|
| 45 |
-
cryptography==42.0.8
|
| 46 |
-
cycler==0.12.1
|
| 47 |
-
deap==1.4.1
|
| 48 |
-
debugpy==1.8.15
|
| 49 |
-
decorator==5.1.1
|
| 50 |
-
distlib==0.3.8
|
| 51 |
-
distro==1.9.0
|
| 52 |
-
docopt==0.6.2
|
| 53 |
-
docutils==0.21.2
|
| 54 |
-
doit==0.36.0
|
| 55 |
-
dulwich==0.22.1
|
| 56 |
-
ecdsa==0.19.0
|
| 57 |
-
editables==0.5
|
| 58 |
-
einops==0.8.1
|
| 59 |
-
entrypoints==0.4
|
| 60 |
-
exceptiongroup==1.2.1
|
| 61 |
-
execnet==2.1.1
|
| 62 |
-
executing==2.2.0
|
| 63 |
-
fastjsonschema==2.21.2
|
| 64 |
-
filelock==3.15.1
|
| 65 |
-
fonttools==4.59.0
|
| 66 |
-
frozenlist==1.7.0
|
| 67 |
-
fsspec==2024.6.0
|
| 68 |
-
future==1.0.0
|
| 69 |
-
gast==0.5.4
|
| 70 |
-
gcsfs==2025.9.0
|
| 71 |
-
GDAL==3.6.2
|
| 72 |
-
geopandas==1.1.1
|
| 73 |
-
glob2==0.7
|
| 74 |
-
google-api-core==2.25.1
|
| 75 |
-
google-auth==2.40.3
|
| 76 |
-
google-auth-oauthlib==1.2.2
|
| 77 |
-
google-cloud-core==2.4.3
|
| 78 |
-
google-cloud-storage==3.4.0
|
| 79 |
-
google-crc32c==1.7.1
|
| 80 |
-
google-resumable-media==2.7.2
|
| 81 |
-
googleapis-common-protos==1.70.0
|
| 82 |
-
hf-xet==1.1.5
|
| 83 |
-
html5lib==1.1
|
| 84 |
-
huggingface-hub==0.36.0
|
| 85 |
-
idna==3.7
|
| 86 |
-
imagesize==1.4.1
|
| 87 |
-
importlib-metadata==7.1.0
|
| 88 |
-
importlib-resources==6.4.0
|
| 89 |
-
iniconfig==2.0.0
|
| 90 |
-
intervaltree==3.1.0
|
| 91 |
-
intreehooks==1.0
|
| 92 |
-
ipaddress==1.0.23
|
| 93 |
-
ipykernel==6.30.0
|
| 94 |
-
ipython==9.4.0
|
| 95 |
-
ipython-pygments-lexers==1.1.1
|
| 96 |
-
isodate==0.7.2
|
| 97 |
-
jaraco.classes==3.4.0
|
| 98 |
-
jaraco.context==5.3.0
|
| 99 |
-
jedi==0.19.2
|
| 100 |
-
jeepney==0.8.0
|
| 101 |
-
Jinja2==3.1.4
|
| 102 |
-
jmespath==1.0.1
|
| 103 |
-
joblib==1.4.2
|
| 104 |
-
jsonschema==4.22.0
|
| 105 |
-
jsonschema-specifications==2023.12.1
|
| 106 |
-
jupyter-client==8.7.1
|
| 107 |
-
jupyter-core==5.7.3
|
| 108 |
-
kiwisolver==1.4.8
|
| 109 |
-
keyring==25.2.1
|
| 110 |
-
lark==1.1.9
|
| 111 |
-
liac-arff==2.5.0
|
| 112 |
-
lockfile==0.12.2
|
| 113 |
-
lxml==5.2.2
|
| 114 |
-
MarkupSafe==2.1.5
|
| 115 |
-
matplotlib==3.9.4
|
| 116 |
-
matplotlib-inline==0.1.7
|
| 117 |
-
mock==5.1.0
|
| 118 |
-
more-itertools==10.2.0
|
| 119 |
-
mpi4py==4.0.3
|
| 120 |
-
mpmath==1.4.0
|
| 121 |
-
msal==1.34.1
|
| 122 |
-
msal-extensions==1.2.2
|
| 123 |
-
msgpack==1.0.8
|
| 124 |
-
multidict==6.1.0
|
| 125 |
-
mypy-extensions==1.0.0
|
| 126 |
-
nest-asyncio==1.6.0
|
| 127 |
-
netCDF4==1.7.3
|
| 128 |
-
networkx==3.5.1
|
| 129 |
-
nose==1.3.7
|
| 130 |
-
numexpr==2.10.0
|
| 131 |
-
numpy==1.26.4
|
| 132 |
-
oauthlib==3.2.2
|
| 133 |
-
packaging==24.1
|
| 134 |
-
pandas==2.2.2
|
| 135 |
-
parso==0.8.4
|
| 136 |
-
pathspec==0.12.1
|
| 137 |
-
pbr==6.1.0
|
| 138 |
-
pexpect==4.9.0
|
| 139 |
-
pillow==10.4.0
|
| 140 |
-
pkgconfig==1.5.5
|
| 141 |
-
platformdirs==4.2.2
|
| 142 |
-
ply==3.11
|
| 143 |
-
pooch==1.8.2
|
| 144 |
-
prompt-toolkit==3.0.51
|
| 145 |
-
propcache==0.3.2
|
| 146 |
-
proto-plus==1.26.1
|
| 147 |
-
protobuf==6.32.1
|
| 148 |
-
psutil==5.9.8
|
| 149 |
-
ptyprocess==0.7.0
|
| 150 |
-
pure-eval==0.2.3
|
| 151 |
-
py==1.11.0
|
| 152 |
-
py-expression-eval==0.3.14
|
| 153 |
-
pyarrow==21.0.0
|
| 154 |
-
pyasn1==0.6.0
|
| 155 |
-
pyasn1-modules==0.4.2
|
| 156 |
-
pycparser==2.22
|
| 157 |
-
pycryptodome==3.20.0
|
| 158 |
-
pydevtool==0.3.0
|
| 159 |
-
pyforestscan==0.3.0
|
| 160 |
-
PyGithub==2.8.1
|
| 161 |
-
Pygments==2.18.0
|
| 162 |
-
PyJWT==2.10.1
|
| 163 |
-
pylev==1.4.0
|
| 164 |
-
PyNaCl==1.5.0
|
| 165 |
-
pyogrio==0.11.0
|
| 166 |
-
pyparsing==3.1.2
|
| 167 |
-
pyproj==3.7.1
|
| 168 |
-
pyrsistent==0.20.0
|
| 169 |
-
pytest==8.2.2
|
| 170 |
-
pytest-xdist==3.6.1
|
| 171 |
-
python-dateutil==2.9.0.post0
|
| 172 |
-
pythran==0.16.1
|
| 173 |
-
pytokens==0.1.10
|
| 174 |
-
pytoml==0.1.21
|
| 175 |
-
pytz==2024.1
|
| 176 |
-
PyYAML==6.0.2
|
| 177 |
-
pyzmq==27.0.0
|
| 178 |
-
rapidfuzz==3.9.3
|
| 179 |
-
rasterio==1.4.3
|
| 180 |
-
referencing==0.35.1
|
| 181 |
-
regex==2024.5.15
|
| 182 |
-
requests==2.32.3
|
| 183 |
-
requests-oauthlib==2.0.0
|
| 184 |
-
requests-toolbelt==1.0.0
|
| 185 |
-
rich==13.7.1
|
| 186 |
-
rich-click==1.8.3
|
| 187 |
-
rioxarray==0.19.0
|
| 188 |
-
rpds-py==0.18.1
|
| 189 |
-
rsa==4.9.1
|
| 190 |
-
s3transfer==0.14.0
|
| 191 |
-
safetensors==0.5.3
|
| 192 |
-
scandir==1.10.0
|
| 193 |
-
scipy==1.13.1
|
| 194 |
-
seaborn==0.13.2
|
| 195 |
-
SecretStorage==3.3.3
|
| 196 |
-
semantic-version==2.10.0
|
| 197 |
-
setuptools==80.9.0
|
| 198 |
-
shapely==2.1.1
|
| 199 |
-
shellingham==1.5.4
|
| 200 |
-
simplegeneric==0.8.1
|
| 201 |
-
simplejson==3.19.2
|
| 202 |
-
six==1.16.0
|
| 203 |
-
snowballstemmer==2.2.0
|
| 204 |
-
sortedcontainers==2.4.0
|
| 205 |
-
Sphinx==7.3.7
|
| 206 |
-
sphinx-bootstrap-theme==0.8.1
|
| 207 |
-
sphinxcontrib-applehelp==1.0.8
|
| 208 |
-
sphinxcontrib-devhelp==1.0.6
|
| 209 |
-
sphinxcontrib-htmlhelp==2.0.5
|
| 210 |
-
sphinxcontrib-jsmath==1.0.1
|
| 211 |
-
sphinxcontrib-qthelp==1.0.7
|
| 212 |
-
sphinxcontrib-serializinghtml==1.1.10
|
| 213 |
-
sphinxcontrib-websupport==1.2.7
|
| 214 |
-
stack-data==0.6.3
|
| 215 |
-
sympy==1.14.0
|
| 216 |
-
tabulate==0.9.0
|
| 217 |
-
tenacity==9.1.2
|
| 218 |
-
threadpoolctl==3.5.0
|
| 219 |
-
timm==1.0.17
|
| 220 |
-
tokenizers==0.22.1
|
| 221 |
-
toml==0.10.2
|
| 222 |
-
tomli==2.0.1
|
| 223 |
-
tomli-w==1.0.0
|
| 224 |
-
tomlkit==0.12.5
|
| 225 |
-
torch==2.7.1
|
| 226 |
-
torchvision==0.22.1
|
| 227 |
-
tornado==6.5.1
|
| 228 |
-
tqdm==4.67.1
|
| 229 |
-
traitlets==5.14.3
|
| 230 |
-
transformers==4.57.1
|
| 231 |
-
triton==3.3.1
|
| 232 |
-
typing-extensions==4.14.1
|
| 233 |
-
tzdata==2024.1
|
| 234 |
-
ujson==5.10.0
|
| 235 |
-
urllib3==2.2.1
|
| 236 |
-
versioneer==0.29
|
| 237 |
-
virtualenv==20.26.2
|
| 238 |
-
wcwidth==0.2.13
|
| 239 |
-
webencodings==0.5.1
|
| 240 |
-
xarray==2025.7.1
|
| 241 |
-
xlrd==2.0.1
|
| 242 |
-
yarl==1.20.1
|
| 243 |
-
zipfile36==0.1.3
|
| 244 |
-
zipp==3.19.2
|
|
|
|
| 1 |
+
numpy
|
| 2 |
+
torch
|
| 3 |
+
rasterio
|
| 4 |
+
gradio
|
| 5 |
+
transformers
|
| 6 |
+
pillow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