File size: 674 Bytes
a28751e
b9d0cf5
a28751e
 
 
b9d0cf5
a28751e
8930eb7
 
 
a28751e
0a6b72c
 
b9d0cf5
0a6b72c
 
 
a28751e
 
0a6b72c
b9d0cf5
a28751e
 
 
 
 
 
 
b9d0cf5
edaa671
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
31
FROM jupyter/base-notebook:latest

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

RUN mkdir ./pages
RUN mkdir ./processing
RUN mkdir ./utils

COPY /pages ./pages
COPY /processing ./processing
COPY /utils ./utils

COPY main.py /home/jovyan/
COPY *.css /home/jovyan/
COPY requirements.txt /home/jovyan/

RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade -r /home/jovyan/requirements.txt

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

USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}

EXPOSE 8765

CMD ["solara", "run", "main.py", "--host=0.0.0.0"]