FROM debian:stable-20200720-slim ARG TARGETARCH ARG MC_VERSION ADD https://dl.min.io/client/mc/release/linux-${TARGETARCH}/archive/mc.${MC_VERSION} /root/ RUN mv /root/mc.${MC_VERSION} /usr/bin/mc && chmod +x /usr/bin/mc FROM scratch COPY --from=0 /usr/bin/mc /mc ENTRYPOINT ["/mc"]