add release build-arg for multiarch builds

This commit is contained in:
Harshavardhana
2021-03-10 00:10:53 -08:00
parent 28d8677578
commit dde89f7604
2 changed files with 9 additions and 5 deletions
+3 -1
View File
@@ -2,6 +2,8 @@ FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
ARG TARGETARCH
ARG RELEASE
LABEL maintainer="MinIO Inc <dev@min.io>"
COPY CREDITS /licenses/CREDITS
@@ -11,7 +13,7 @@ RUN \
microdnf update --nodocs && \
microdnf install curl ca-certificates shadow-utils --nodocs && \
microdnf clean all && \
curl -s -q https://dl.minio.io/client/mc/release/linux-${TARGETARCH}/mc -o /usr/bin/mc && \
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"]