RIC-1059: dms_cli to use flask-restx
[ric-plt/appmgr.git] / Dockerfile
index 5f43439..3a0f870 100755 (executable)
 
 #-----------------------------------------------------------
 
-FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu18-c-go:1.9.0 AS appmgr-build
+FROM nexus3.o-ran-sc.org:10002/o-ran-sc/bldr-ubuntu20-c-go:1.0.0 AS appmgr-build
 
 RUN apt-get update -y && apt-get install -y jq
 
+# Update CA certificates
+RUN apt update && apt install --reinstall -y \
+  ca-certificates \
+  && \
+  update-ca-certificates
+
 ENV PATH="/usr/local/go/bin:${PATH}"
 
 # Install helm
@@ -67,11 +73,11 @@ RUN gofmt -l $(find cmd/ pkg/  -name '*.go' -not -name '*_test.go')
 CMD ["/bin/bash"]
 
 #----------------------------------------------------------
-FROM ubuntu:18.04 as appmgr
+FROM ubuntu:20.04 as appmgr
 
 RUN apt-get update -y \
-    && apt-get install -y sudo openssl ca-certificates ca-cacert \
-    && apt-get clean
+    && apt-get install --reinstall -y sudo openssl ca-certificates ca-cacert \
+    && apt-get clean && update-ca-certificates
 
 #
 # libraries and helm