I've got a package that I want to build into a docker image which depends on an adjacent package on my system.
My requirements.txt
looks something like this:
-e ../other_module numpy==1.0.0 flask==0.12.5
When I call pip install -r requirements.txt
in a virtualenv this works fine. However, if I call this in a Dockerfile, e.g.:
ADD requirements.txt /app RUN pip install -r requirements.txt
and run using docker build .
I get an error saying the following:
../other_module should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+
What, if anything, am I doing wrong here?
other_module
in the Docker image?../other_module
to the docker image as well?COPY ../other_module /app
but that renders a different error:Forbidden path outside the build context