Can’t find a github package inside docker container

  django, docker, pip, python

I’ve been trying to install a github repository inside a docker container through a requirements.txt file.
Running "docker-compose build –no-cache" I can see it being installed, but when I get inside the container itself, I try a "pip freeze" and all the other packages explicited inside requirements.txt are there, except the one from github.
Here is my requirements:

psycopg2-binary>=2.8,<2.9
Pillow>=7
django-rosetta
gunicorn
pytest
pytest-django
pytest-bdd
pytest-xdist
djangorestframework
-e git://github.com/tb-brics/dorothy-data-reader.git#egg=xrayreader

and my dockerfile (not complete here but I guess this is enough for understanding the problem):

#Setting working environment
WORKDIR /service

#Here is where we will mount the volume containing all the x-ray images
RUN mkdir /imagesrep
RUN chown -R www-data:www-data /imagesrep

#Installing dependencies
COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

#Copying necessary files for production execution.
COPY django ./

#Creating folder to contain static files.
RUN mkdir -p /var/www/dorothy/static
RUN chown -R www-data:www-data /var/www/dorothy/static

#Creating folder for dorothy logs
RUN mkdir -p /var/log/dorothy
RUN chown -R www-data:www-data /var/log/dorothy

Really need this asap, accepting any suggestion, thanks.

Source: Docker Questions

LEAVE A COMMENT