Fix support for registry auth with Dockerfile build.

Docker-DCO-1.1-Signed-off-by: Jake Moshenko <jake@devtable.com> (github: jakedt)
Merge pull request #3442 from DevTable/master

Fix support for registry auth with Dockerfile build.