Upon trying to build the image, with:
docker build -t 'opencv' .
I get E: Unable to locate package libjasper-dev
according to:
https://stackoverflow.com/questions/43484357/opencv-in-ubuntu-17-04/44488374#44488374
one should add some repository. This solution did not work for me.