Docker JDK Dockerfile

Alibaba Dragonwell

1
2
3
4
5
6
7
8
9
10
11
12
FROM centos:7

ADD java /opt/java

WORKDIR /

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 \