FROM python:2.7 RUN virtualenv virtual RUN /bin/bash -c "source /virtual/bin/activate && pip install pyserial && deactivate" .