From 9aa1f43df7cff96a4efca9dd536a7a55dbb3b536 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 2 Mar 2023 20:42:28 -0800 Subject: [PATCH] move to UBI micro image (#2684) Co-authored-by: Prakash Senthil Vel <23444145+prakashsvmx@users.noreply.github.com> Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com> --- Dockerfile.release | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Dockerfile.release b/Dockerfile.release index 72cef891c..8e8a86187 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -1,9 +1,17 @@ -FROM registry.access.redhat.com/ubi8/ubi-minimal:8.7 +FROM --platform=linux/amd64 registry.access.redhat.com/ubi8/ubi-minimal:8.7 as build -ARG TAG +RUN microdnf update --nodocs && microdnf install ca-certificates --nodocs +RUN curl -s -q https://raw.githubusercontent.com/minio/kes/master/LICENSE -o LICENSE +RUN curl -s -q https://raw.githubusercontent.com/minio/kes/master/CREDITS -o CREDITS -COPY CREDITS /licenses/CREDITS -COPY LICENSE /licenses/LICENSE +FROM registry.access.redhat.com/ubi8/ubi-micro:8.7 + +# On RHEL the certificate bundle is located at: +# - /etc/pki/tls/certs/ca-bundle.crt (RHEL 6) +# - /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem (RHEL 7) +COPY --from=build /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem /etc/pki/ca-trust/extracted/pem/ +COPY --from=build LICENSE /LICENSE +COPY --from=build CREDITS /CREDITS LABEL name="MinIO" \ vendor="MinIO Inc " \ @@ -13,10 +21,6 @@ LABEL name="MinIO" \ summary="A graphical user interface for MinIO" \ description="MinIO object storage is fundamentally different. Designed for performance and the S3 API, it is 100% open-source. MinIO is ideal for large, private cloud environments with stringent security requirements and delivers mission-critical availability across a diverse range of workloads." -RUN \ - microdnf update --nodocs && \ - microdnf install ca-certificates --nodocs - EXPOSE 9090 COPY console /console