A docker image that helps to build the Oracle JVM package for Debian
-
Download the JDK tarball from the Oracle website
-
Run the docker container to build the Debian package
docker run -v /path/to/jdk_tarball_dir:/java/jdk \ --name java-deb -it olbat/docker-debian-java-package -
Copy the generated Debian package file to the host
docker cp java-deb:/java/oracle-java8-jdk_..._amd64.deb . -
Remove the container
docker rm java-deb