mirror of
https://github.com/minio/mc.git
synced 2025-04-18 10:04:03 +03:00
25 lines
755 B
Docker
25 lines
755 B
Docker
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest as build
|
|
|
|
RUN microdnf update --nodocs --assumeyes && microdnf install ca-certificates --nodocs --assumeyes
|
|
|
|
FROM registry.access.redhat.com/ubi9/ubi-micro:latest
|
|
|
|
ARG TARGETARCH
|
|
ARG RELEASE
|
|
|
|
LABEL maintainer="MinIO Inc <dev@min.io>"
|
|
|
|
# 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 CREDITS /licenses/CREDITS
|
|
COPY LICENSE /licenses/LICENSE
|
|
|
|
ADD https://dl.min.io/client/mc/hotfixes/linux-${TARGETARCH}/archive/mc.${RELEASE} /usr/bin/mc
|
|
|
|
RUN chmod +x /usr/bin/mc
|
|
|
|
ENTRYPOINT ["mc"]
|