How to covert binary installation as docker image

How to covert binary installation as docker image.
Actually I pass values while binary installation. How can I do achieve this process using docker file. How to pass run time arguments while docker file building.

Please anyone help us on this.

How about describing what your actualy do with your docker run commandline, your compose-file and if you did already created a Dockerfile, the Dockefile as well.