-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathDockerfile.zulu-11u12-jre-headless
More file actions
32 lines (26 loc) · 1.26 KB
/
Dockerfile.zulu-11u12-jre-headless
File metadata and controls
32 lines (26 loc) · 1.26 KB
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
28
29
30
31
32
# 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
ARG ZULU_DIR=zulu-11-azure-jre-headless_11.50.19-11.0.12-linux_musl_x64
RUN ZULU_PACK=${ZULU_DIR}.tar.gz && \
INSTALL_DIR=/usr/lib/jvm && \
BIN_DIR=/usr/bin && \
MAN_DIR=/usr/share/man/man1 && \
apk --no-cache add ca-certificates libgcc libstdc++ ttf-dejavu wget && \
apk update && \
apk upgrade && \
wget -q https://repos.azul.com/azure-only/zulu/packages/zulu-11/11.0.12/zulu-11-azure-jre-headless_11.50.19-11.0.12-linux_musl_x64.tar.gz && \
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 {} . \;
ENV JAVA_HOME=/usr/lib/jvm/${ZULU_DIR}