buildx/mc/Dockerfile
2020-07-29 16:01:00 +02:00

10 lines
284 B
Docker

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"]