Pull image with arguments, login and password

I want to build and image with software you must login to download.
If I build image in local, I build with:
docker build --build-arg USER= --build-arg PASSWORD=
And the image have the software installed and when I run image, start the software.

How can I do to pull the image with arguments to download and install it?
The software is form oracle, is free but not for production and you must have a user to download.
I think you can upload this software to public repository.