create docker image for deploying selenium application

im trying to install firefox + gechodriver on openjdk:8 but it fails to untar the downloaded firefix and create the simlink! can someone plase let me know what are the prerequisites for installing firefox?

Source: StackOverflow