giswqs commited on
Commit
bb1efb6
·
1 Parent(s): 2a6f3c4

Update Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -4
  2. requirements.txt +0 -1
Dockerfile CHANGED
@@ -1,9 +1,16 @@
1
  FROM jupyter/base-notebook:latest
2
 
 
 
 
 
3
  RUN mamba install -c conda-forge geopandas localtileserver -y && \
4
  fix-permissions "${CONDA_DIR}" && \
5
  fix-permissions "/home/${NB_USER}"
6
 
 
 
 
7
  COPY requirements.txt .
8
  RUN pip install -r requirements.txt
9
 
@@ -14,11 +21,7 @@ ENV PROJ_LIB='/opt/conda/share/proj'
14
 
15
  USER root
16
  RUN chown -R ${NB_UID} ${HOME}
17
- RUN apt-get update && apt-get install -y git
18
- RUN pip install -U git+https://github.com/giswqs/ipyleaflet.git@pmtiles
19
- RUN pip install -U git+https://github.com/opengeos/leafmap.git
20
  USER ${NB_USER}
21
-
22
  EXPOSE 8765
23
 
24
  CMD ["solara", "run", "./pages", "--host=0.0.0.0"]
 
1
  FROM jupyter/base-notebook:latest
2
 
3
+ USER root
4
+ RUN apt-get update && apt-get install -y git
5
+ USER ${NB_USER}
6
+
7
  RUN mamba install -c conda-forge geopandas localtileserver -y && \
8
  fix-permissions "${CONDA_DIR}" && \
9
  fix-permissions "/home/${NB_USER}"
10
 
11
+ RUN pip install -U git+https://github.com/giswqs/ipyleaflet.git@pmtiles
12
+ RUN pip install -U git+https://github.com/opengeos/leafmap.git
13
+
14
  COPY requirements.txt .
15
  RUN pip install -r requirements.txt
16
 
 
21
 
22
  USER root
23
  RUN chown -R ${NB_UID} ${HOME}
 
 
 
24
  USER ${NB_USER}
 
25
  EXPOSE 8765
26
 
27
  CMD ["solara", "run", "./pages", "--host=0.0.0.0"]
requirements.txt CHANGED
@@ -1,4 +1,3 @@
1
- leafmap>=0.25.3
2
  solara
3
  geopandas
4
  pydantic< 2.0
 
 
1
  solara
2
  geopandas
3
  pydantic< 2.0