From a24b633ccb6486214f01f57501afaa95d6b3e376 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Tue, 4 Feb 2020 17:36:03 -0600 Subject: [PATCH] Added support for buildx multi-arch builds --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9583cb1f..3fb2e4b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,10 +26,12 @@ RUN addgroup -g 1000 minecraft \ EXPOSE 25565 25575 -ARG ARCH=amd64 +# hook into docker buildx --platform support +# see https://github.com/docker/buildx/#---platformvaluevalue +ARG TARGETPLATFORM=linux/amd64 -ARG EASY_ADD_VER=0.5.0 -ADD https://github.com/itzg/easy-add/releases/download/${EASY_ADD_VER}/easy-add_${EASY_ADD_VER}_linux_${ARCH} /usr/bin/easy-add +ARG EASY_ADD_VER=0.5.1 +ADD "https://easy-add-downloader.now.sh/api/download?version=${EASY_ADD_VER}&platform=${TARGETPLATFORM}" /usr/bin/easy-add RUN chmod +x /usr/bin/easy-add RUN easy-add --var version=1.2.0 --var app=restify --file restify --from https://github.com/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz