How do I access configuration variables inside a Dockerfile?

When building your image, Aptible injects a .aptible.env file at the root of your repository prior to running the Docker build. The file contains your Configuration variables, and can be sourced by a shell. See Accessing Configuration variables during the Docker build for more details.