I have a requirements.txt file containing, amongst others:
Flask-RQ==0.2
-e git+https://token:[email protected]/user/repo.git#egg=repo
When I try to build a Docker container using Docker Compose, it downloads both packages, and install them both, but when I do a pip freeze there is no sign of the -e package. When I try to run the app, it looks as if this package hasn't been installed. Here's the relevant output from the build:
Collecting Flask-RQ==0.2 (from -r requirements.txt (line 3))
Downloading Flask-RQ-0.2.tar.gz
Obtaining repo from git+https://token:[email protected]/user/repo.git#egg=repo (from -r requirements.txt (line 4))
Cloning https://token:[email protected]/user/repo.git to ./src/repo
And here's my Dockerfile:
FROM python:2.7
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip install -r requirements.txt
COPY . /usr/src/app
I find this situation very strange and would appreciate any help.
COPY . /use/src/app. Though I'm not really sure what you intended with that, since yourpip installhappens inside the container. - Gigablahpip listoutput? - Alikpip freeze: the editable package is not there. - linkyndypipdidn't install the package. Try to install it by hands with verbose output (-vvv). Maybe it will give you a hint about cause of the problem - Alik