20 lines
523 B
Docker
20 lines
523 B
Docker
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.8
|
|
|
|
ARG TARGETARCH
|
|
|
|
ARG RELEASE
|
|
|
|
LABEL maintainer="MinIO Inc <dev@min.io>"
|
|
|
|
COPY CREDITS /licenses/CREDITS
|
|
COPY LICENSE /licenses/LICENSE
|
|
|
|
RUN \
|
|
microdnf update --nodocs && \
|
|
microdnf install curl ca-certificates shadow-utils util-linux gzip lsof tar net-tools jq --nodocs && \
|
|
microdnf clean all && \
|
|
curl -s -q https://dl.minio.io/client/mc/release/linux-${TARGETARCH}/archive/mc.${RELEASE} -o /usr/bin/mc && \
|
|
chmod +x /usr/bin/mc
|
|
|
|
ENTRYPOINT ["mc"]
|