Is it possible to install latest qt with docker without compiling?

I need to install the latest qt on my ubuntu:latest docker machine, so I cannot install the packages, and I also don’t want to trust other’s people build of qt. So the only option is to use the qt installer provided by qt.

I’ve found How can I install Qt 5.2.1 from the command line in Cygwin? but this requires a graphical interface, which docker does not provide.

So, is it possible to install qt with the installer from command line? That is, an installation that will work on a dockerfile?

Source: StackOverflow