记录
# This Zulu OpenJDK Dockerfile and corresponding Docker image are
# to be used solely with Java applications or Java application components
# that are being developed for deployment on Microsoft Azure or Azure Stack,
# and are not intended to be used for any other purpose.
FROM alpine
MAINTAINER Zulu Enterprise Container Images <[email protected]>
ENV LANG=C.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \
TZ=Asia/Shanghai
RUN ZULU_PACK=zulu-8-azure-jdk_8.31.0.1-8.0.181-linux_musl_x64.tar.gz && \
INSTALL_DIR=/usr/lib/jvm && \
BIN_DIR=/usr/bin && \
MAN_DIR=/usr/share/man/man1 && \
ZULU_DIR=$( basename ${ZULU_PACK} .tar.gz ) && \
echo "" > /etc/apk/repositories && \
echo "https://mirrors.aliyun.com/alpine/v3.8/main/" >> /etc/apk/repositories && \
echo "https://mirrors.aliyun.com/alpine/v3.8/community/" >> /etc/apk/repositories && \
apk --no-cache add binutils ca-certificates libgcc libstdc++ ttf-dejavu tzdata tini wget curl && \
wget -q http://repos.azul.com/azure-only/zulu/packages/zulu-8/8u181/$ZULU_PACK && \
mkdir -p ${INSTALL_DIR} && \
tar -xf ./${ZULU_PACK} -C ${INSTALL_DIR} && rm -f ${ZULU_PACK} && \
cd ${BIN_DIR} && \
find ${INSTALL_DIR}/${ZULU_DIR}/bin -type f -perm -a=x -exec ln -s {} . \; && \
mkdir -p ${MAN_DIR} && \
cd ${MAN_DIR} && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
find ${INSTALL_DIR}/${ZULU_DIR}/man/man1 -type f -name "*.1" -exec ln -s {} . \;
源dockerfile:https://github.com/microsoft/java/blob/master/docker/alpine/Dockerfile.zulu-8u181-jdk