giswqs commited on
Commit
1976937
·
1 Parent(s): 3301b08

Update Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +6 -11
  2. requirements.txt +1 -2
Dockerfile CHANGED
@@ -1,8 +1,4 @@
1
- FROM jupyter/base-notebook:latest
2
-
3
- RUN mamba install -c conda-forge leafmap 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
@@ -10,12 +6,11 @@ RUN pip install -r requirements.txt
10
  RUN mkdir ./pages
11
  COPY /pages ./pages
12
 
13
- ENV PROJ_LIB='/opt/conda/share/proj'
 
14
 
15
- USER root
16
- RUN chown -R ${NB_UID} ${HOME}
17
- USER ${NB_USER}
18
 
19
- EXPOSE 8765
20
 
21
- CMD ["solara", "run", "./pages", "--host=0.0.0.0"]
 
1
+ FROM quay.io/jupyter/base-notebook:latest
 
 
 
 
2
 
3
  COPY requirements.txt .
4
  RUN pip install -r requirements.txt
 
6
  RUN mkdir ./pages
7
  COPY /pages ./pages
8
 
9
+ WORKDIR /home/jovyan
10
+ USER jovyan
11
 
12
+ EXPOSE 7860
 
 
13
 
14
+ HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
15
 
16
+ ENTRYPOINT ["solara", "run", "./pages", "--host=0.0.0.0", "--port=7860"]
requirements.txt CHANGED
@@ -1,4 +1,3 @@
1
  leafmap
2
  solara
3
- geopandas
4
- pydantic< 2.0
 
1
  leafmap
2
  solara
3
+ geopandas