dockerfile部署java环境

FROM centos:8
MAINTAINER xiaocaidao
RUN mkdir /usr/local/java
ADD jdk-11.0.10_linux-x64_bin.tar.gz /usr/local/java
ENV JAVA_HOME /usr/local/java/jdk-11.0.10
ENV PATH $JAVA_HOME/bin:$PATH
ENV CLASSPATH .:$JAVA_HOME/lib

posted on 2021-05-28 12:29  南山以南丶  阅读(805)  评论(0编辑  收藏  举报

导航