jordancaraballo commited on
Commit
a296da5
1 Parent(s): 341f78d

Last version of the container for HF spaces

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -13
  2. requirements.txt +1 -7
Dockerfile CHANGED
@@ -6,26 +6,16 @@ ENV HF_HUB_DISABLE_PROGRESS_BARS=1
6
  RUN rm -rf /etc/apt/sources.list.d/*.list && \
7
  apt-get update && apt-get install -y git gcc build-essential python3-dev libgeos-dev
8
 
9
- RUN python3 -m pip install --upgrade pip setuptools wheel
10
-
11
- #RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
12
- # fix-permissions "${CONDA_DIR}" && \
13
- # fix-permissions "/home/${NB_USER}"
14
-
15
  COPY requirements.txt .
 
16
  RUN python3 -m pip install --upgrade pip setuptools wheel cython numpy pyshp six pyproj
 
17
  RUN python3 -m pip install --upgrade --no-binary :all: shapely
18
  #RUN python3 -m pip install git+https://github.com/SciTools/cartopy.git --upgrade --no-binary :all: cartopy
19
- RUN python3 -m pip install git+https://github.com/SciTools/cartopy.git --upgrade cartopy
20
 
21
  RUN python3 -m pip install --no-cache-dir --compile -r requirements.txt
22
 
23
- #ENV PROJ_LIB='/opt/conda/share/proj'
24
-
25
- #USER root
26
- #RUN chown -R ${NB_UID} ${HOME}
27
- #USER ${NB_USER}
28
-
29
  RUN useradd -m -u 1000 user
30
  USER user
31
  ENV HOME=/home/user \
 
6
  RUN rm -rf /etc/apt/sources.list.d/*.list && \
7
  apt-get update && apt-get install -y git gcc build-essential python3-dev libgeos-dev
8
 
 
 
 
 
 
 
9
  COPY requirements.txt .
10
+
11
  RUN python3 -m pip install --upgrade pip setuptools wheel cython numpy pyshp six pyproj
12
+ RUN python3 -m pip install geemap>=0.21.0 leafmap mapwidget geopandas datasets rioxarray streamlit
13
  RUN python3 -m pip install --upgrade --no-binary :all: shapely
14
  #RUN python3 -m pip install git+https://github.com/SciTools/cartopy.git --upgrade --no-binary :all: cartopy
15
+ #RUN python3 -m pip install git+https://github.com/SciTools/cartopy.git --upgrade cartopy
16
 
17
  RUN python3 -m pip install --no-cache-dir --compile -r requirements.txt
18
 
 
 
 
 
 
 
19
  RUN useradd -m -u 1000 user
20
  USER user
21
  ENV HOME=/home/user \
requirements.txt CHANGED
@@ -1,7 +1 @@
1
- geemap>=0.21.0
2
- leafmap
3
- mapwidget
4
- geopandas
5
- datasets
6
- rioxarray
7
- streamlit
 
1
+ cartopy