mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
24 lines
1.0 KiB
Docker
24 lines
1.0 KiB
Docker
|
FROM epicmorg/debian:stretch-develop
|
||
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||
|
|
||
|
##################################################################
|
||
|
# installing java8
|
||
|
##################################################################
|
||
|
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 && \
|
||
|
apt-get update && \
|
||
|
apt-get autoremove -y && \
|
||
|
apt-get install -y --allow-unauthenticated temurin-8-jdk && \
|
||
|
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
|