Further to the details above, the image I need to install OpenCV on is:
Deep Learning Base AMI (Ubuntu 18.04) Version 27.0