ubuntu的java镜像dockerfile
FROM ubuntu:20.04 ENV.UTF-8 \ JAVA_HOME=/aaa/java \ PATH=$PATH:/aaa/java/bin RUN sed -i -r 's#http://(archive|security).ubuntu.com#http://mirrors.aliyun.com#g' /etc/apt/sources.list && apt-get update -y RUN apt-get install -y tzdata && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime COPY java /aaa/java COPY test /aaa/test COPY init /opt/init COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas CMD ["/opt/init/run.sh"]
请登录之后再进行评论