Files
kenaito-lab/image/runtime-jdk8/Dockerfile
T

19 lines
680 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:system-alinux3
LABEL MAINTAINER="tianjun@odboy.cn"
ENV TimeZone=Asia/Shanghai
ENV JAVA_HOME=/usr/local/java
ENV PATH="${JAVA_HOME}/bin:$PATH"
WORKDIR /home/admin
# 阿里 Dragonwell 8(Extended 完整 JDK),版本 8.30.29 / 1.8.0_502
# jdk.java.net 官方归档最早只到 JDK 9,JDK 8 无官方 GA 二进制,改用 Dragonwell 发行版
# 由 prepare-jdk.sh 下载并去掉体积大的 lib/src.zip 后重新打包
ADD jdk-8.tar.gz ./
RUN set -e && yum install \
tar \
wget \
net-tools \
bind-utils -y; \
mv ./dragonwell-8.30.29 ${JAVA_HOME}; \
chmod +x ${JAVA_HOME}/bin/*; \
java -version;