Browse Source

Update Dockerfile.ubi

Update Dockerfile.ubi to use go-toolset (which is based on Go 1.18) to provide + FIPS compliant libraries.

Signed-off-by: Idan Adar <iadar@il.ibm.com>
Idan Adar 3 years ago
parent
commit
f638862aa7
1 changed files with 5 additions and 2 deletions
  1. 5 2
      Dockerfile.ubi

+ 5 - 2
Dockerfile.ubi

@@ -1,9 +1,12 @@
-FROM registry.access.redhat.com/ubi8/ubi-minimal
+FROM registry.access.redhat.com/ubi8/go-toolset AS builder
+
 ARG TARGETOS
 ARG TARGETARCH
 COPY bin/external-secrets-${TARGETOS}-${TARGETARCH} /bin/external-secrets
 
-RUN microdnf update
+FROM registry.access.redhat.com/ubi8/ubi-minimal
+
+RUN microdnf update -y
 
 # Run as UID for nobody
 USER 65534