I am trying to serve a fairly large model (1GB) from a Flask powered docker container on Google Cloud Run.
I am trying to figure out the best way load the pickle / joblib model files - so as to reduce container start up time.
Since including in the github source is not an option or desired, the only idea I have now is to try and read it into the container from the Dockerfile by using gsutil.
How would this affect cold container startup time? Is there an easier way to achieve this?
Also it seems that calling joblib.load(model_file_path) in the code is not a good idea - as the load can take 30 secs or more.