This commit is contained in:
Tom Karbowski 2019-04-16 15:10:41 -05:00 коммит произвёл GitHub
Родитель 953ad7eac2
Коммит 6004ac2273
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -5,22 +5,22 @@
# and are not intended to be used for any other purpose.
FROM mcr.microsoft.com/java/jre-headless:11u3-zulu-alpine AS stage1
FROM mcr.microsoft.com/java/jdk:11u2-zulu-alpine AS stage2
FROM mcr.microsoft.com/java/jdk:11u3-zulu-alpine AS stage2
MAINTAINER Zulu Enterprise Container Images <azul-zulu-images@microsoft.com>
ARG INSTALL_DIR=/usr/lib/jvm
ARG JDK_DIR=${INSTALL_DIR}/zulu-11-azure-jdk_11.31.11-11.0.3-linux_musl_x64
ARG JRE_DIR=${INSTALL_DIR}/zulu-11-azure-jre-headless_11.31.1-11.0.3-linux_musl_x64
ARG JRE_DIR=${INSTALL_DIR}/zulu-11-azure-jre-headless_11.31.11-11.0.3-linux_musl_x64
COPY --from=stage1 ${JRE_DIR} ${INSTALL_DIR}
RUN JRE_TOOLS_DIR=${INSTALL_DIR}/zulu-11-azure-jre-headless-tools_11.31.1-11.0.3-linux_musl_x64 && \
RUN JRE_TOOLS_DIR=${INSTALL_DIR}/zulu-11-azure-jre-headless-tools_11.31.11-11.0.3-linux_musl_x64 && \
JRE_MODULES=$(jimage list ${JRE_DIR}/lib/modules | grep "Module: " | sed -e "s/^Module: //" | tr '\n' ',') && \
JRE_MODULES=${JRE_MODULES}jdk.jcmd, && \
jlink --release-info ${JDK_DIR}/release --module-path ${JDK_DIR}/jmods --no-header-files --strip-debug --add-modules ${JRE_MODULES} --output ${JRE_TOOLS_DIR}
FROM alpine
ARG JRE_TOOLS_DIR=/usr/lib/jvm/zulu-11-azure-jre-headless-tools_11.31.1-11.0.3-linux_musl_x64
ARG JRE_TOOLS_DIR=/usr/lib/jvm/zulu-11-azure-jre-headless-tools_11.31.11-11.0.3-linux_musl_x64
COPY --from=stage2 ${JRE_TOOLS_DIR} ${JRE_TOOLS_DIR}
RUN apk --no-cache add ca-certificates ttf-dejavu && \

Просмотреть файл

@ -9,7 +9,7 @@ FROM mcr.microsoft.com/java/jre-headless:8u212-zulu-alpine
MAINTAINER Zulu Enterprise Container Images <azul-zulu-images@microsoft.com>
ARG JDK_DIR=/usr/lib/jvm/zulu-8-azure-jdk_8.38.0.13-8.0.212-linux_musl_x64
ARG JRE_DIR=/usr/lib/jvm/zulu-8-azure-jre-headless_8.38.0.1-8.0.212-linux_musl_x64
ARG JRE_DIR=/usr/lib/jvm/zulu-8-azure-jre-headless_8.38.0.13-8.0.212-linux_musl_x64
COPY --from=stage1 ${JDK_DIR}/bin/jmap ${JRE_DIR}/bin
COPY --from=stage1 ${JDK_DIR}/bin/jstack ${JRE_DIR}/bin
COPY --from=stage1 ${JDK_DIR}/lib/tools.jar ${JRE_DIR}/lib