Closed joannalange closed 7 years ago
It's possible that because docker caches each step (that's the layers in the docker filesystem), that apt-get update
isn't running, and the package archive cache in the container is out-of-date.
You can force recreation of everything, or better yet, move the installation of pip to the top right after the update:
RUN apt-get update
RUN apt-get install -y build-essential git wget gfortran python-pip
...
...
// Lots of stuff here
...
...
COPY requirements.txt .
RUN pip install --upgrade pip ;\
pip install --no-cache -r requirements.txt
docker-compose crashes on pip installation I'm runing it with:
docker-compose -f docker-compose.yml -f docker-compose-dev.yml run --rm celery nosetests -v --with-coverage --cover-inclusive --cover-package kmad_web tests/integration
The archives that it's trying to fetch are indeed not there.