I’ve been trying for hours to get Java 11 installed on a docker based on debian 9. It seems rather complicated due to oracle’s decision of requiring manual, "log-in"ed downloads, which is obviously not possible from within docker build.
all the repository problems aside, this is the code that I’ve gotten the furthest with:
RUN apt install -y software-properties-common && \
add-apt-repository ppa:linuxuprising/java &&\
apt-get update && \
apt install -y --allow-unauthenticated oracle-java11-installer-local && \
apt install oracle-java11-set-default-local
but at some point, there’s a terms and conditions prompt which requires manual input yes/no. It does not work, the docker build just freezes here regardless of user input.
Please share how you’re automatically installing java 11 on debian-based systems!