mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-17 13:58:19 +00:00
initial commit
This commit is contained in:
9
mc/Dockerfile
Normal file
9
mc/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
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"]
|
13
mc/Makefile
Normal file
13
mc/Makefile
Normal file
@ -0,0 +1,13 @@
|
||||
include mc/mc.version
|
||||
|
||||
mc-nopush:
|
||||
docker buildx build --platform linux/amd64 --load \
|
||||
--build-arg MC_VERSION=$(MC_VERSION) \
|
||||
--tag alemairebe/mc:$(MC_VERSION) mc
|
||||
|
||||
mc:
|
||||
docker buildx build --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le --push \
|
||||
--build-arg MC_VERSION=$(MC_VERSION) \
|
||||
--cache-from=type=registry,ref=alemairebe/mc \
|
||||
--cache-to=type=registry,ref=alemairebe/mc \
|
||||
--tag alemairebe/mc:$(MC_VERSION) mc
|
1
mc/mc.version
Normal file
1
mc/mc.version
Normal file
@ -0,0 +1 @@
|
||||
MC_VERSION=RELEASE.2020-07-17T02-52-20Z
|
Reference in New Issue
Block a user