Build a container based on and requirements.txt


Mon Mar 21 2022 01:29:18 GMT+0000 (UTC)

Saved by @jmbenedetto #bash

gcloud builds submit --pack,env=GOOGLE_FUNCTION_TARGET=start

gcloud builds submit takes the source files in the current directory, uploads them to GCP and then performs container construction. GOOGLE_FUNCTION_TARGET tells cloud run to inject the Cloud Functions framework into the resulting container such that it will call the code supplied function when a request arrives. start: name of the function to be triggered by the http request. It must be inside the code file supplied. image: insert where the container should be stored after creation.