Skip to content

Commit 4034d7d

Browse files
authored
fix users for libfmt install
1 parent d85d890 commit 4034d7d

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
FROM jupyter/minimal-notebook:python-3.10
22

3-
USER jovyan
4-
3+
# Installing package for libmamba
4+
USER root
55
RUN apt-get update && \
66
apt install -y \
77
libfmt-dev
8+
USER jovyan
89

10+
# Set up conda
911
RUN conda update conda
1012
RUN conda config --remove channels conda-forge
1113
RUN conda config --add channels conda-forge
1214
RUN conda config --set channel_priority strict
1315

16+
# Create environment
1417
COPY environment.yml /home/jovyan/
1518
RUN 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
1721
RUN 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
2126
RUN source /home/jovyan/.bash_profile
2227

2328
# Install dev version of Earthpy

0 commit comments

Comments
 (0)