jordancaraballo commited on
Commit
cd55fe8
·
1 Parent(s): a296da5

Last version of the container for HF spaces, fixing environment

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -4
  2. requirements.txt +7 -1
Dockerfile CHANGED
@@ -6,13 +6,13 @@ 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
- 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
 
@@ -28,4 +28,4 @@ COPY --chown=user /pages ./pages
28
 
29
  EXPOSE 7860
30
 
31
- CMD ["streamlit", "run", "./pages/Home.py", "--server.port=7860"]
 
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
+ COPY requirements.txt .
12
  RUN python3 -m pip install --upgrade pip setuptools wheel cython numpy pyshp six pyproj
 
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
 
 
28
 
29
  EXPOSE 7860
30
 
31
+ CMD ["streamlit", "run", "./pages/Home.py", "--server.port=7860"]
requirements.txt CHANGED
@@ -1 +1,7 @@
1
- cartopy
 
 
 
 
 
 
 
1
+ geemap>=0.21.0
2
+ leafmap
3
+ mapwidget
4
+ geopandas
5
+ datasets
6
+ rioxarray
7
+ streamlit