I have a Django project running in docker. When I add some packages to my requirments.txt file, they don't get downloaded when I run docker-compose up
Here is the relevant commands from my Dockerfile:
ADD ./evdc/requirements.txt /opt/evdc-venv/ ADD ./env-requirements.txt /opt/evdc-venv/ # Active venv RUN . /opt/evdc-venv/bin/activate && pip install -r /opt/evdc- venv/requirements.txt RUN . /opt/evdc-venv/bin/activate && pip install -r /opt/evdc-venv/env-requirements.txt
It seems docker is using a cached version of my requirements.txt file, as when I shell into the container, the requirements.txt file in /opt/evdc-venv/requirements.txt does not include the new packages. Is there some way I can delete this cached version of requirements.txt?
- Dev OS: Windows 10
- Docker: 17.03.0-ce
- docker-compose: 1.11.2