An error occurred while loading the file. Please try again.
-
Decoupes Remy authoredd5c9b28a
FROM condaforge/mambaforge
# variable for paths and env name
ARG dest_yml=/tmp/environment.yml
ARG env_name=rs-notebooks
# adding notebooks and other misc files
ADD *.ipynb /notebooks/
ADD sample.geojson /notebooks/
# creating environment
ADD environment_jupyterhub.yml ${dest_yml}
RUN mamba env create --file ${dest_yml} --name ${env_name}
ENV PATH /opt/conda/envs/${env_name}/bin:$PATH
ENV ENV_NAME ${env_name}
# setting up
WORKDIR /notebooks
RUN useradd -m beyond
chown -R beyond:beyond /notebooks
USER beyond
CMD /opt/conda/envs/${ENV_NAME}/bin/jupyterhub-singleuser --allow-root --debug