ll2_climate_service / Dockerfile
Kelbec
change port
59f44a2
FROM jupyter/base-notebook:latest
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
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN mkdir ./pages
COPY /pages ./pages
COPY /data ./data
COPY /assets ./assets
ENV PROJ_LIB='/opt/conda/share/proj'
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
EXPOSE 7860
CMD ["solara", "run", "./pages", "--host=0.0.0.0", "--port=7860"]