Docker JDK Dockerfile 发表于 2019-07-15 | 分类于 Docker , Dockerfile Alibaba Dragonwell123456789101112FROM centos:7ADD java /opt/javaWORKDIR /RUN alternatives --install /usr/bin/java java /opt/java/bin/java 2 \ && alternatives --install /usr/bin/jar jar /opt/java/bin/jar 2 \ && alternatives --install /usr/bin/javac javac /opt/java/bin/javac 2 \ && alternatives --set java /opt/java/bin/java \ && alternatives --set jar /opt/java/bin/jar \ && alternatives --set javac /opt/java/bin/javac \