I have a Dockerfile where I try to activate python virtualenv after what, it should install all dependencies within this env. However, everything still gets installed global
If you your using python 3.x :
RUN pip install virtualenv RUN virtualenv -p python3.5 virtual RUN /bin/bash -c "source /virtual/bin/activate"
If you are using python 2.x :
RUN pip install virtualenv RUN virtualenv virtual RUN /bin/bash -c "source /virtual/bin/activate"