FROM jupyter/base-notebook:latest # Install required packages RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \ fix-permissions "${CONDA_DIR}" && \ fix-permissions "/home/${NB_USER}" # Copy the requirements file and install dependencies COPY requirements.txt . RUN pip install -r requirements.txt # Copy the entire project directory into the container COPY . /home/${NB_USER} # Set the working directory WORKDIR /home/${NB_USER} # Set the PROJ_LIB environment variable ENV PROJ_LIB='/opt/conda/share/proj' # Ensure the notebook user owns the home directory USER root RUN chown -R ${NB_UID} ${HOME} USER ${NB_USER} # Expose the port for Solara EXPOSE 8765 # Run the Solara app CMD ["solara", "run", "pages", "--host=0.0.0.0"]