title: CommandNotFoundError when activate conda with Docker
body: <p>I am new to <code>Docker</code> and try to build the <code>Docker</code> image with the activation of the <code>conda</code> environment. But I can't.</p>
  <p>This is my <code>Dockerfile</code>:</p>
  <pre><code>FROM continuumio/miniconda3
  
  COPY . /app
  
  WORKDIR /app
  
  RUN conda env create -f environment.yml
  
  SHELL [&quot;conda&quot;, &quot;run&quot;, &quot;-n&quot;, &quot;FM&quot;, &quot;/bin/bash&quot;, &quot;-c&quot;]
  
  RUN conda activate FM
  
  ENTRYPOINT [&quot;conda&quot;, &quot;run&quot;, &quot;-n&quot;, &quot;FM&quot;, &quot;python&quot;, &quot;src/run.py&quot;]
  </code></pre>
  <p>My <code>environment.yml</code> file:</p>
  <pre><code>name: FM
  channels:
    - defaults
  dependencies:
    - _libgcc_mutex=0.1=main
    - ca-certificates=2020.6.24=0
    - certifi=2020.6.20=py37_0
    - ld_impl_linux-64=2.33.1=h53a641e_7
    - libedit=3.1.20191231=h7b6447c_0
    - libffi=3.2.1=hd88cf55_4
    - libgcc-ng=9.1.0=hdf63c60_0
    - libstdcxx-ng=9.1.0=hdf63c60_0
    - ncurses=6.2=he6710b0_1
    - openssl=1.1.1g=h7b6447c_0
    - pip=20.1.1=py37_1
    - python=3.7.6=h0371630_2
    ...
    - pip:
      - click==7.1.2
      - cycler==0.10.0
      - decorator==4.4.2
      - flask==1.1.2
      - imageio==2.9.0
      - itsdangerous==1.1.0
      ...
  prefix: /home/huytran/miniconda3/envs/FM
  </code></pre>
  <p>When I build the image <code>docker build -t condatest .</code>, I get this error:</p>
  <pre><code>...
  Step 5/8 : SHELL [&quot;conda&quot;, &quot;run&quot;, &quot;-n&quot;, &quot;FM&quot;, &quot;/bin/bash&quot;, &quot;-c&quot;]
   ---&gt; Running in 962623c513cc
  Removing intermediate container 962623c513cc
   ---&gt; c5a91349830f
  Step 6/8 : RUN conda activate FM
   ---&gt; Running in 1f3d1cd0c50b
  
  CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
  To initialize your shell, run
  
      $ conda init &lt;SHELL_NAME&gt;
  
  Currently supported shells are:
    - bash
    - fish
    - tcsh
    - xonsh
    - zsh
    - powershell
  
  See 'conda init --help' for more information and options.
  
  IMPORTANT: You may need to close and restart your shell after running 'conda init'.
  </code></pre>
  <p>Do you guys know where I am wrong?</p>