Dockerfile

FROM centos:7.9.2009


RUN mkdir /usr/local/java

ADD jdk-8u321-linux-x64.tar.gz /usr/local/java
RUN ln -s /usr/local/java/jdk1.8.0_321 /usr/local/java/jdk

ENV JAVA_HOME /usr/local/java/jdk 
ENV JRE_HOME $/jre
ENV CLASSPATH .:$/lib:$/lib 
ENV PATH $/bin:$PATH