docker-scripts/linux/ecosystem/epicmorg/debian/09-stretch/jdk8/Dockerfile

27 lines
1.2 KiB
Docker
Raw Normal View History

2022-05-06 01:06:22 +03:00
FROM epicmorg/debian:stretch
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
##################################################################
# installing java8
##################################################################
2022-05-06 02:08:20 +03:00
RUN RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - && \
echo 'deb https://packages.adoptium.net/artifactory/deb stretch main' > /etc/apt/sources.list.d/temurin-official.list && \
2022-05-06 01:06:22 +03:00
apt-get update && \
apt-get autoremove -y && \
2022-05-06 02:08:20 +03:00
apt-get install -y --allow-unauthenticated temurin-8-jdk && \
mkdir /usr/lib/jvm/temurin-8-jdk-amd64/jre && \
ln -s /usr/lib/jvm/temurin-8-jdk-amd64/bin/ /usr/lib/jvm/temurin-8-jdk-amd64/jre/bin && \
ln -s /usr/lib/jvm/temurin-8-jdk-amd64/lib/ /usr/lib/jvm/temurin-8-jdk-amd64/jre/lib && \
2022-05-06 01:06:22 +03:00
java -version
##################################################################
# cleanup
##################################################################
RUN apt-get purge policykit-1 -y && \
apt-get clean -y && \
apt-get autoclean -y && \
rm -rfv /var/lib/apt/lists/* && \
rm -rfv /tmp/* && \
rm -rfv /var/cache/apt/archives/*.deb