another fix in Dockerfile

This commit is contained in:
Wolfgang Hottgenroth 2020-09-25 11:25:15 +02:00
parent eaf583a860
commit 8f3962c6df
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4

View File

@ -6,14 +6,13 @@ LABEL AlternativeImageName="wollud1969/build-env-java"
RUN \ RUN apt update
apt update && \ RUN apt install software-properties-common
apt install software-properties-common && \ RUN curl https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public > adoptopenjdk.key
curl https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public > adoptopenjdk.key && \ RUN apt-key add adoptopenjdk.key
apt-key add adoptopenjdk.key && \ RUN add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ && \ RUN apt update
apt update && \ RUN apt install adoptopenjdk-8-hotspot
apt install adoptopenjdk-8-hotspot && \ RUN apt install -y maven
apt install -y maven && \ RUN rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/*