Interactive UI installation of 3rd Party apps while creating Docker container

Is there any way to install any 3rd party apps using an interactive UI while creating the docker.
I was able to achieve the same using the “ENTRYPOINT” command but the same didn’t work with “RUN” command.

Enviromnent :
Ubuntu 16.04.

Eg :
RUN ./3rdPartyApp.run
I get an error “QXCBConnection could net find Display”.

Its because RUN is will execute on image build, and not on container run, and i dont think you can use the UI in a dockerfile.