My docker container requires JAVA_HOME to be set. I have added it to the Dockerfile as below
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/jre
However, this is a hardcoding of the value. Is there a way I can get this value dynamically from the image itself
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…