Skip to content

Commit

Permalink
fix users for libfmt install
Browse files Browse the repository at this point in the history
  • Loading branch information
eculler authored Jan 10, 2024
1 parent d85d890 commit 4034d7d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
FROM jupyter/minimal-notebook:python-3.10

USER jovyan

# Installing package for libmamba
USER root
RUN apt-get update && \
apt install -y \
libfmt-dev
USER jovyan

# Set up conda
RUN conda update conda
RUN conda config --remove channels conda-forge
RUN conda config --add channels conda-forge
RUN conda config --set channel_priority strict

# Create environment
COPY environment.yml /home/jovyan/
RUN conda env update -n base -f /home/jovyan/environment.yml
# using ~/.bash_profile instead of ~/.bashrc for non-interactive tty (-it) containers

# Activating environment
RUN echo ". /opt/conda/etc/profile.d/conda.sh" >> /home/jovyan/.bash_profile && \
echo "conda deactivate" >> /home/jovyan/.bash_profile && \
echo "conda activate base" >> /home/jovyan/.bash_profile
RUN . /opt/conda/etc/profile.d/conda.sh && conda activate base && python -m ipykernel install --user --name base
RUN . /opt/conda/etc/profile.d/conda.sh && conda activate base && python -m ipykernel install --user --name base
# using ~/.bash_profile instead of ~/.bashrc for non-interactive tty (-it) containers
RUN source /home/jovyan/.bash_profile

# Install dev version of Earthpy
Expand Down

0 comments on commit 4034d7d

Please sign in to comment.