My Application is running as - Google App Engine Standard Environment : Python 37
I deploy my application using gcloud as following command
gc
The error cannot allocate memory
usually appears if the number of files or the size of the content that is being uploaded is too big and the instance used to deploy your code runs out of memory.
The cause of this error might be the fact that you are using too many dependencies or static files.
Are you downloading static files ? I see this command tar_runtime_package tar
before the error.
I would suggest to make sure you only use the necessary dependencies or choose to deploy your application on Google Cloud Run.