File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM jupyter/minimal-notebook:python-3.10
22
3- USER jovyan
4-
3+ # Installing package for libmamba
4+ USER root
55RUN apt-get update && \
66 apt install -y \
77 libfmt-dev
8+ USER jovyan
89
10+ # Set up conda
911RUN conda update conda
1012RUN conda config --remove channels conda-forge
1113RUN conda config --add channels conda-forge
1214RUN conda config --set channel_priority strict
1315
16+ # Create environment
1417COPY environment.yml /home/jovyan/
1518RUN conda env update -n base -f /home/jovyan/environment.yml
16- # using ~/.bash_profile instead of ~/.bashrc for non-interactive tty (-it) containers
19+
20+ # Activating environment
1721RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> /home/jovyan/.bash_profile && \
1822 echo "conda deactivate" >> /home/jovyan/.bash_profile && \
1923 echo "conda activate base" >> /home/jovyan/.bash_profile
20- RUN . /opt/conda/etc/profile.d/conda.sh && conda activate base && python -m ipykernel install --user --name base
24+ RUN . /opt/conda/etc/profile.d/conda.sh && conda activate base && python -m ipykernel install --user --name base
25+ # using ~/.bash_profile instead of ~/.bashrc for non-interactive tty (-it) containers
2126RUN source /home/jovyan/.bash_profile
2227
2328# Install dev version of Earthpy
You can’t perform that action at this time.
0 commit comments