If we start with the basic hello-python
tutorial project and simply add some large libraries (scipy, tensorflow) to the requirements that requires lots of compiling of various sub requirements, building the container for the function can end up building for a long time (~1 hour). Is there a way to build the simple hello world example (and thu any example) into an existing container that already has these requirements built out?
Further details, this assumes using the python3 template with all the various packages needed to build the libraries added to the template (for scipy
, things such as gcc
and gfortran
added to the build_options
in template.yml
for python3).