NPO_Tools / Dockerfile
DavMelchi's picture
try build
edaa671
raw
history blame contribute delete
674 Bytes
FROM jupyter/base-notebook:latest
RUN mamba install -c conda-forge geopandas localtileserver -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"
RUN mkdir ./pages
RUN mkdir ./processing
RUN mkdir ./utils
COPY /pages ./pages
COPY /processing ./processing
COPY /utils ./utils
COPY main.py /home/jovyan/
COPY *.css /home/jovyan/
COPY requirements.txt /home/jovyan/
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade -r /home/jovyan/requirements.txt
ENV PROJ_LIB='/opt/conda/share/proj'
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
EXPOSE 8765
CMD ["solara", "run", "main.py", "--host=0.0.0.0"]