From f6d3936c67961e79bfc8fbc5d43752e9cbf38d0e Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 29 Jan 2024 15:52:02 +0100 Subject: [PATCH] Fix Dockerfile to run apt update together with apt install Change-Id: Ia8d0d333e1ed6b3ca0e22d3689cf057ed7e10520 Signed-off-by: garciadeblas --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.25.1