How to install a specific version of Java 8 using Dockerfile
As most PPA packages pack the latest stable version, I would recommend installing Java manually from Oracle, just like in this answer.
You can do all the work in the script too, the steps are:
- get the tarball with
wget
, - untar it with
tar -xz
, - use
update-alternatives
to set is as default