To install TensorFlow, which is an ML library, Keras, which is an abstraction layer on top of TensorFlow that makes it easier to program, and h5py, which is a serialization layer that allows you to serialize and deserialize TensorFlow models, go to the target Docker container, then go into the requirements.txt file and install the libraries by inserting the following:
tensorflow
keras
h5py