diff --git a/Dockerfile b/Dockerfile index c531982..60fa6d5 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM openjdk:jre-alpine as builder -COPY qemu-*-static /usr/bin/ +COPY qemu-aarch64-static /usr/bin/ +COPY qemu-arm-static /usr/bin/ FROM builder @@ -9,10 +10,12 @@ LABEL maintainer="Jay MOULIN .Dockerfile; \ + if [ $(arch) = arm32v6 ]; \ + then archi=armhf; \ + image=larmog\\/armhf-alpine-java:jdk-8u73; \ + elif [ $(arch) = arm64v8 ]; \ + then archi=arm64; \ + image=larmog\\/armhf-alpine-java:jdk-8u73; \ + else \ + archi=$(arch); \ + image=${arch}\\/openjdk:jre-alpine; \ + fi; \ + cat Dockerfile | sed "s/FROM openjdk:jre-alpine/FROM $$image/g" > .Dockerfile; \ docker build -t jaymoulin/jdownloader:${VERSION}-$(arch) -f .Dockerfile --build-arg ARCH=$${archi} ${CACHE} .;\ ) publish: