diff --git a/docker/Dockerfile b/docker/Dockerfile index 72cd53e..d73f96d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -27,8 +27,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /miniconda.sh \ && bash /miniconda.sh -b -p /opt/miniconda3 \ && rm -f /miniconda3 \ - && echo "export PATH=/opt/miniconda3/bin:\${PATH}" > /etc/profile.d/miniconda.sh \ - && echo ". \$(conda info --base)/etc/profile.d/conda.sh" >> /etc/profile.d/miniconda.sh + && echo "export PATH=/opt/miniconda3/bin:\${PATH}" >> /etc/bash.bashrc \ + && echo ". \$(conda info --base)/etc/profile.d/conda.sh" >> /etc/bash.bashrc # copy the repo source (e.g. notebooks) to the container image ARG ML101_HASH="dfb7a172a49f76f7c0ab1f9a96fa9b92aafaac96" @@ -36,7 +36,8 @@ RUN git clone https://github.com/nesi/sklearn_tutorial.git /opt/sklearn_tutorial && cd /opt/sklearn_tutorial \ && git checkout $ML101_HASH \ && rm -rf /opt/sklearn_tutorial/.git \ - && . /etc/profile.d/miniconda.sh \ + && export PATH=/opt/miniconda3/bin:${PATH} \ + && . $(conda info --base)/etc/profile.d/conda.sh \ && conda env create -f /opt/sklearn_tutorial/environment.yml -p /var/lib/skl_tut \ - && echo "conda activate /var/lib/skl_tut" >> /etc/profile.d/miniconda.sh \ + && echo "conda activate /var/lib/skl_tut" >> /etc/bash.bashrc \ && conda clean -afy