Help in installing Docker rpm inside a docker image

I am new to docker world.Need some help.
I want to install a rpm inside a running docker image.
I was using to rpm -i abc.rpm to install rpm from terminal.
But i am getting errors while installing the rpm since the dependent files are missing.

That (or yum install) is the right thing to RUN to install an RPM package in a Red Hat-like image’s Dockerfile.