How do I access configuration variables inside a Dockerfile?

See Accessing Configuration variables during the Docker build.