File size: 757 Bytes
cb2bdbd
 
6787797
 
cb2bdbd
 
 
 
0b48bca
9288468
a420b51
b851993
6787797
4bc2361
cb2bdbd
 
 
 
 
 
 
 
 
 
 
0b48bca
cb2bdbd
 
c1a444d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM jupyter/base-notebook:latest

ARG GITHUB_TOKEN

RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
    fix-permissions "${CONDA_DIR}" && \
    fix-permissions "/home/${NB_USER}"

USER root
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
RUN conda install -c conda-forge gdal
RUN pip install git+https://${GITHUB_TOKEN}@github.com/saferplaces/dcascade_py.git
RUN pip install keplergl
RUN pip install xarray
COPY requirements.txt .
RUN pip install -r requirements.txt

RUN mkdir ./pages
COPY /pages ./pages

ENV PROJ_LIB='/opt/conda/share/proj'

USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
RUN mkdir ./public
EXPOSE 8765

CMD ["solara", "run", "./pages", "--host=0.0.0.0", "--production"]