mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Added support for buildx multi-arch builds
This commit is contained in:
parent
5b8cd8cdcc
commit
a24b633ccb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user