July 2018
Intermediate to advanced
506 pages
16h 2m
English
To get started with custom runtimes, gcloud beta provides a helper function to generate the required Dockerfile and app.yaml:
gcloud beta app gen-config --custom
This command will analyze the current directory to determine the type of application. For example, when run in a directory with a package.json file, gcloud will provide an app.yaml and Dockerfile for building a Node.js application. This command will generate a basic app.yaml and the following Dockerfile:
FROM gcr.io/google_appengine/nodejsCOPY . /app/...RUN npm install --unsafe-perm || \ ((if [ -f npm-debug.log ]; then \ cat npm-debug.log; \ fi) && false)CMD npm start
Note that this generated Dockerfile is provided as a convenience, but any valid ...