From: garciadeblas Date: Mon, 29 Jan 2024 14:52:02 +0000 (+0100) Subject: Fix Dockerfile to run apt update together with apt install X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F14172%2F1;p=osm%2FIM.git Fix Dockerfile to run apt update together with apt install Change-Id: Ia8d0d333e1ed6b3ca0e22d3689cf057ed7e10520 Signed-off-by: garciadeblas --- diff --git a/Dockerfile b/Dockerfile index e9f5ee1..8226ee9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,12 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ RUN python3 -m easy_install pip==21.3.1 RUN pip install tox==3.24.5 -RUN DEBIAN_FRONTEND=noninteractive apt -y install wget build-essential dh-make \ - openjdk-8-jdk maven +RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get -y install \ + wget \ + build-essential \ + dh-make \ + openjdk-8-jdk \ + maven + RUN update-java-alternatives --set /usr/lib/jvm/java-1.8.0-openjdk-amd64