-
Notifications
You must be signed in to change notification settings - Fork 71
/
Dockerfile.zulu-8u181-jdk
27 lines (23 loc) · 1.16 KB
/
Dockerfile.zulu-8u181-jdk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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 <azul-zulu-images@microsoft.com>
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
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 ) && \
apk --no-cache add binutils ca-certificates libgcc libstdc++ ttf-dejavu wget && \
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} && \
find ${INSTALL_DIR}/${ZULU_DIR}/man/man1 -type f -name "*.1" -exec ln -s {} . \;