huggingface-solara / Dockerfile
Jonathan Marokhovsky
Made the cog-focused page, reorganized into more of an app framework, and updated the requirements
c140c33
raw
history blame contribute delete
650 Bytes
# This Dockerfile was derived from giswqs's solara-template Dockerfile
# link: https://huggingface.co/spaces/giswqs/solara-template/tree/main
FROM jupyter/base-notebook:latest
RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN mkdir ./toy_app
COPY /toy_app ./toy_app
ENV PROJ_LIB='/opt/conda/share/proj'
ENV PYTHONPATH "${PYTHONPATH}:/toy_app/src"
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
EXPOSE 8765
CMD ["solara", "run", "./toy_app/pages", "--host=0.0.0.0"]