From: garciadeblas Date: Thu, 28 Apr 2022 10:50:59 +0000 (+0200) Subject: Fix Dockerfile to add missing apt-update before apt-install X-Git-Tag: v12.0.0rc1~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=7650485e056e9894f2c804db16b41910bd4d8132;p=osm%2FIM.git Fix Dockerfile to add missing apt-update before apt-install There are some issues in stage2 when installing apt packages due to the use of an old apt cache. This commit fixes it by doing apt update before apt install. Change-Id: I539155280a2caae65442c7f0805f3232b505612d Signed-off-by: garciadeblas --- diff --git a/Dockerfile b/Dockerfile index a1dc352..3ca4992 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,7 @@ 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-get -y install wget build-essential dh-make \ +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