From 7650485e056e9894f2c804db16b41910bd4d8132 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Thu, 28 Apr 2022 12:50:59 +0200 Subject: [PATCH] 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 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.17.1