diff --git a/21/jdk/al2/Dockerfile b/21/jdk/al2/Dockerfile deleted file mode 100644 index 7aa054bb..00000000 --- a/21/jdk/al2/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -FROM amazonlinux:2 - -ARG version=21.0.0.35-1 - -RUN set -eux \ - && export resouce_version=$(echo $version | tr '-' '.') \ - && rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2 \ - && echo "localpkg_gpgcheck=1" >> /etc/yum.conf \ - && CORRETO_TEMP=$(mktemp -d) \ - && pushd ${CORRETO_TEMP} \ - && RPM_LIST=("java-21-amazon-corretto-headless-$version.amzn2.1.$(uname -m).rpm" "java-21-amazon-corretto-$version.amzn2.1.$(uname -m).rpm" "java-21-amazon-corretto-devel-$version.amzn2.1.$(uname -m).rpm" "java-21-amazon-corretto-jmods-$version.amzn2.1.$(uname -m).rpm") \ - && for rpm in ${RPM_LIST[@]}; do \ - curl --fail -O https://corretto.aws/downloads/resources/${resouce_version}/${rpm} \ - && rpm -K "${CORRETO_TEMP}/${rpm}" | grep -F "${CORRETO_TEMP}/${rpm}: rsa sha1 (md5) pgp md5 OK" || exit 1 \ - && if [[ ${rpm} != *jmods* ]]; then \ - yum install -y $(yum deplist "${CORRETO_TEMP}/${rpm}" |grep provider | grep -vE "log4j-cve|corretto" | tr -s ' ' |cut -d ' ' -f 3 ); \ - fi; \ - done \ - && rpm -i --nodeps ${CORRETO_TEMP}/*.rpm \ - && popd \ - && (find /usr/lib/jvm/java-21-amazon-corretto.$(uname -m) -name src.zip -delete || true) \ - && rm -rf ${CORRETO_TEMP} \ - && yum clean all \ - && rm -rf /var/cache/yum \ - && sed -i '/localpkg_gpgcheck=1/d' /etc/yum.conf - -ENV LANG C.UTF-8 -ENV JAVA_HOME=/usr/lib/jvm/java-21-amazon-corretto \ No newline at end of file