Fix Dockerfile to add missing apt-update before apt-install 59/11959/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 28 Apr 2022 10:50:59 +0000 (12:50 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Thu, 28 Apr 2022 10:52:32 +0000 (12:52 +0200)
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 <gerardo.garciadeblas@telefonica.com>
Dockerfile

index a1dc352..3ca4992 100644 (file)
@@ -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