-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
27 lines (23 loc) · 975 Bytes
/
Dockerfile
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
# Dockerizing a base images with:
#
# - Ubuntu 20.04 LTS (Focal Fossa)
# - OpenJDK 8
#
# Build: docker build -t exoplatform/jdk:openjdk-8 .
#
# Run: docker run -ti exoplatform/jdk:openjdk-8 -version
FROM exoplatform/ubuntu:20.04
LABEL maintainer="eXo Platform <[email protected]>"
ENV JDK_MAJOR_VERSION 8
# Install OpenJDK Java 8 SDK
RUN apt-get -qq update && \
apt-get -qq -y install gnupg ca-certificates curl
RUN curl -s https://repos.azul.com/azul-repo.key | gpg --dearmor -o /usr/share/keyrings/azul.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | tee /etc/apt/sources.list.d/zulu.list
RUN apt-get -qq update && \
apt-get -qq -y install zulu${JDK_MAJOR_VERSION}-jdk
RUN apt-get -qq -y autoremove && \
apt-get -qq -y clean && \
rm -rf /var/lib/apt/lists/*
ENV JAVA_HOME /usr/lib/jvm/zulu${JDK_MAJOR_VERSION}-ca-amd64
ENTRYPOINT ["/usr/local/bin/tini", "--", "/usr/bin/java"]