title: Problems running conda update in a dockerfile
body: <p>I am trying to create a docker container with some conda environments. When I run the container in interactive mode running </p>
  
  <pre><code>conda update --all
  conda env create -f env.yml
  </code></pre>
  
  <p>runs with no issues. However whenever I try to execute these commands with a Docker file I recieve </p>
  
  <pre><code>/bin/sh: 1: conda: command not foud
  </code></pre>
  
  <p>Docker file is shown below:</p>
  
  <pre><code>FROM ubuntu:latest
  RUN apt-get update &amp;&amp; \
      apt-get install unzip &amp;&amp; \
      mkdir /install &amp;&amp; \
      apt-get install nano
  COPY Anaconda3-2018.12-Linux-x86_64.sh env.yml /install/
  WORKDIR /install
  RUN bash Anaconda3-2018.12-Linux-x86_64.sh -b &amp;&amp; \
      echo "export PATH="/root/anaconda3/bin:$PATH"" &gt;&gt; ~/.bashrc &amp;&amp; \
      /bin/bash -c "source ~/.bashrc"
  RUN conda update --all
  RUN conda env create -f env.yml
  </code></pre>
  
  <p>So it appears that sh is being used instead of bash so I edited the Dockerfile to the following:</p>
  
  <pre><code>FROM ubuntu:latest
  RUN apt-get update &amp;&amp; \
      apt-get install unzip &amp;&amp; \
      mkdir /install &amp;&amp; \
      apt-get install nano
  COPY Anaconda3-2018.12-Linux-x86_64.sh env.yml /install/
  WORKDIR /install
  RUN bash Anaconda3-2018.12-Linux-x86_64.sh -b &amp;&amp; \
      echo "export PATH="/root/anaconda3/bin:$PATH"" &gt;&gt; ~/.bashrc &amp;&amp; \
      /bin/bash -c "source ~/.bashrc"
  RUN /bin/bash -c "conda update --all"
  </code></pre>
  
  <p>with the following error</p>
  
  <pre><code>/bin/bash: conda: command not found
  </code></pre>