mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-31 00:55:29 +03:00
27 lines
1.3 KiB
Docker
27 lines
1.3 KiB
Docker
|
FROM epicmorg/debian:stretch-develop
|
||
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||
|
|
||
|
##################################################################
|
||
|
# installing java14
|
||
|
##################################################################
|
||
|
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - && \
|
||
|
echo 'deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ stretch main' > /etc/apt/sources.list.d/adoptopenjdk-official.list && \
|
||
|
apt-get update && \
|
||
|
apt-get autoremove -y && \
|
||
|
apt-get install -y --allow-unauthenticated adoptopenjdk-14-hotspot && \
|
||
|
mkdir /usr/lib/jvm/adoptopenjdk-14-hotspot-amd64/jre && \
|
||
|
ln -s /usr/lib/jvm/adoptopenjdk-14-hotspot-amd64/bin/ /usr/lib/jvm/adoptopenjdk-14-hotspot-amd64/jre/bin && \
|
||
|
ln -s /usr/lib/jvm/adoptopenjdk-14-hotspot-amd64/lib/ /usr/lib/jvm/adoptopenjdk-14-hotspot-amd64/jre/lib && \
|
||
|
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
|