Docker Inheritance
It is possible to inherit from other dockerfiles defined on the modeler by using the "FROM $<dockerfile_id>" syntax.
For example, if you want to create a new dockerfile with the objective to use the numpy library in a Python2 Operator then you could inherit from the existing "com.sap.opensuse.base" dockerimage, which already satisfy the requirements of the Python2 Operator.
FROM $com.sap.opensuse.base RUN pip install numpy
Notice that although the new dockerfile is inheriting from com.sap.opensuse.base, the tags will not inherit from the parent dockerfile automatically. Therefore, you will need to copy all the tags from the parent dockerfile into the tags of the new one. The following tags would need to be added to the new dockerfile:
{ "opensuse": "", "python27": "", "tornado": "5.0.2", "numpy27": "" }
The new 'numpy27' tag would also need to be added to the user's custom Python2 Operator or to its containing group's configuration.
