Fix Dockerfile to run apt update together with apt install 72/14172/1 v10.0
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 29 Jan 2024 14:52:02 +0000 (15:52 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 29 Jan 2024 14:52:02 +0000 (15:52 +0100)
Change-Id: Ia8d0d333e1ed6b3ca0e22d3689cf057ed7e10520
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
Dockerfile

index e9f5ee1..8226ee9 100644 (file)
@@ -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