From 0fbeb478dc4e3379da071be9196edbce515a1c01 Mon Sep 17 00:00:00 2001 From: Saurabh Tripathy Date: Mon, 5 Apr 2021 20:24:20 -0700 Subject: [PATCH] Migrate Ubuntu to UBI8 minimal image. --- deployment/Dockerfile.both | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/deployment/Dockerfile.both b/deployment/Dockerfile.both index 690fa69d0..68f0b1823 100644 --- a/deployment/Dockerfile.both +++ b/deployment/Dockerfile.both @@ -1,11 +1,13 @@ -From ubuntu:18.04 +FROM registry.access.redhat.com/ubi8/ubi-minimal:latest ADD mcad-controller /usr/local/bin -RUN apt-get update -RUN apt-get -y upgrade - -RUN apt-get install -y curl +RUN true \ + && microdnf update \ + && microdnf --nodocs install \ + curl \ + && microdnf clean all \ + && true RUN cd /usr/local/bin && curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl