python 3.x – How to upload token.pickle to Google cloud run function via .zip file?
The problem, and the strength, with Cloud Run Functions is that is a managed service: Container build and deployment is included in the service. Less things to do, but less control on what it does!
Therefore, when you submit sources (zipped or not), Cloud Run Functions build mechanism (with buildpack) will pick only the relevant files for building its container. In python, the .py files are relevant, the requirements.txt also. but a token.pickle absolutely not.
The way to solve this is to get more control on the container construction and use Cloud Run Service (not function) and a dockerfile to build your own container with the file and constraint you want.
Read more here: Source link
