giswqs commited on
Commit
c413560
·
1 Parent(s): 49a59a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
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,12 @@ 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
  USER root
10
  RUN chown -R ${NB_UID} ${HOME}
11
  USER ${NB_USER}
12
 
13
  EXPOSE 8765
14
 
15
+ HEALTHCHECK CMD curl --fail http://localhost:8765/_stcore/health
16
+
17
+ ENTRYPOINT ["solara", "run", "./pages", "--server.port=8765", "--server.address=0.0.0.0"]