How to install local packages using pip as part of a docker build? : <p>I've got a package that I want to build into a docker image which depends on an adjacent package on my system.</p>

<p>My <code>requirements.txt</code> looks something like this:</p>

<pre>
-e ../other_module
numpy==1.0.0
flask==0.12.5
</pre>

<p>When I call <code>pip install -r requirements.txt</code> in a virtualenv this works fine. However, if I call this in a Dockerfile, e.g.:</p>

<pre>
ADD requirements.txt /app
RUN pip install -r requirements.txt
</pre>

<p>and run using <code>docker build .</code> I get an error saying the following:</p>

<p><code>../other_module should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+</code></p>

<p>What, if anything, am I doing wrong here?</p>
