Improved fix for outdated base image problem 94/6894/1
authorAnssi Mannila <anssi.mannila@nokia.com>
Wed, 20 Oct 2021 08:30:15 +0000 (11:30 +0300)
committerAnssi Mannila <anssi.mannila@nokia.com>
Wed, 20 Oct 2021 08:30:51 +0000 (11:30 +0300)
Change-Id: Icf22a0e4ee6b7fe6fd8780a9afc00b49552b0d3b
Signed-off-by: Anssi Mannila <anssi.mannila@nokia.com>
Dockerfile

index 09d9279..721f158 100644 (file)
 ###########################################################
 FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 as submgrcore
 
-ARG GOVERSION=1.14
-
-ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/opt/go/${GOVERSION}/bin:/root/go/bin
+ARG g14="1.14.4"
+ARG GOVERSION="1.14"
+RUN wget -nv https://dl.google.com/go/go${g14}.linux-amd64.tar.gz \
+     && tar -xf go${g14}.linux-amd64.tar.gz \
+     && mv go /opt/go/${GOVERSION} \
+     && rm -f go*.gz
+
+ENV DEFAULTPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV PATH=$DEFAULTPATH:/usr/local/go/bin:/opt/go/${GOVERSION}/bin:/root/go/bin
 
 # Update CA certificates
 RUN apt update && apt install --reinstall -y \