geospatial-dataviz / Dockerfile
giswqs's picture
Update dockerfile
d801b83
raw
history blame
703 Bytes
FROM jupyter/base-notebook:latest
USER root
RUN apt-get update && apt-get install -y git
USER ${NB_USER}
RUN mamba install -c conda-forge leafmap nodejs geopandas localtileserver -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
# RUN pip install setuptools wheel
# RUN pip install -U git+https://github.com/giswqs/ipyleaflet.git@pmtiles
# RUN pip install -U git+https://github.com/opengeos/leafmap.git
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}
EXPOSE 8765
CMD ["solara", "run", "./pages", "--host=0.0.0.0"]