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 \
apt update && \
apt install software-properties-common && \
curl https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public > adoptopenjdk.key && \
apt-key add adoptopenjdk.key && \
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ && \
apt update && \
apt install adoptopenjdk-8-hotspot && \
apt install -y maven && \
rm -rf /var/lib/apt/lists/*
RUN apt update
RUN apt install software-properties-common
RUN curl https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public > adoptopenjdk.key
RUN apt-key add adoptopenjdk.key
RUN add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
RUN apt update
RUN apt install adoptopenjdk-8-hotspot
RUN apt install -y maven
RUN rm -rf /var/lib/apt/lists/*