Fix support for registry auth with Dockerfile build.