title: Docker Anaconda ModuleNotFoundError
body: <p>I am on Linux (Ubuntu) running a docker container that looks like</p>
  <pre><code>FROM continuumio/miniconda
  
  COPY . /root_dir/
  
  WORKDIR root_dir
  
  RUN [&quot;conda&quot;, &quot;env&quot;, &quot;create&quot;, &quot;-f&quot;, &quot;environment.yaml&quot;]
  
  ENV PYTHONPATH=/rootdir/src
  
  CMD [&quot;conda&quot;, &quot;run&quot;, &quot;-n&quot;, &quot;kardia_env&quot;, &quot;python&quot;, &quot;run/entrypoint.py&quot;]
  </code></pre>
  <p>The container builds fine and resolves the environment, however I get the error <code>ModuleNotFoundError: No module named 'foo'</code> when I run it; <code>run/entrypoint.py</code> tries to import foo</p>
  <p>I do not understand since <code>foo</code> is a subdirectory of <code>src</code> with an <code>__init__.py</code> file, and the PYTHONPATH has been updated to include <code>src</code>. Can anyone shed some light on to this error?</p>