FROM centos:7.9.2009
MAINTAINER my@email.com
LABEL Description="基于centos:7.9.2009镜像,增加jdk-8u341-linux-aarch64.tar.gz和环境变量"
WORKDIR ./usr/local
RUN mkdir jdk &&  chmod 777 /usr/local/jdk
# ADD 会解压,COPY不会解压
ADD jdk-8u341-linux-aarch64.tar.gz /usr/local/jdk
ENV JAVA_HOME /usr/local/jdk/jdk1.8.0_341
ENV CLASSPATH=$JAVA_HOME/bin:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
ENV PATH=.:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
ENV TZ Asia/Shanghai

build:

docker build -t sre/jdk:arm64 .

发表回复

您的电子邮箱地址不会被公开。

Captcha Code