Spaces:
Sleeping
Sleeping
File size: 766 Bytes
68efdc9 |
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
# 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"]
|