This file shows how one can configure a Docker instance to create a serverless function on Digital Ocean.
Rather than running doctl auth init ... to set up a config.yaml file that holds the API token,
the container exec command passes in an environment variable that contains the token.
In that way, the container never has the token on persistent storage.
That means the instance could be committed to an image without having credentials in the image.
It also means the commands in the Here-Doc could be used as as a template to create a Dockerfile in the future.
From DO function docs
First, create a Personal Accesss Token ( PAT )