How to install linux packages from source into docker container, specifically with the tensorflow docker image?

Working with Ubuntu 16.04, Docker 18.09. Currently working with Tensorflow Docker image from with GPU support.

Some packages are not available via Ubuntu package manger (apt-get), specifically something like conda or GDCM ( How can I install it successfully from the source downloaded tarball in a local file? No issues with unpacking the tarball, cmake, make, and install. But the installed package is not detected/utilized.