From: Bastien Wirtz Date: Wed, 20 May 2020 03:41:05 +0000 (-0700) Subject: Fix multiarch docker build. X-Git-Tag: 120405250~7 X-Git-Url: https://git.immae.eu/?p=github%2Fbastienwirtz%2Fhomer.git;a=commitdiff_plain;h=525120de61ec27c8d64207a703061c9400f77c07 Fix multiarch docker build. --- diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 79a7a61..e78d37c 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 @@ -1,4 +1,11 @@ +FROM alpine AS builder + +# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261 +ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-aarch64.tar.gz +RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1 + FROM arm32v7/alpine:3.11 +COPY --from=builder qemu-aarch64-static /usr/bin COPY ./ /www/ diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 707dd83..1e01245 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 @@ -1,4 +1,11 @@ +FROM alpine AS builder + +# Download QEMU, see https://github.com/docker/hub-feedback/issues/1261 +ENV QEMU_URL https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-aarch64.tar.gz +RUN apk add curl && curl -L ${QEMU_URL} | tar zxvf - -C . --strip-components 1 + FROM arm64v8/alpine:3.11 +COPY qemu-arm-static /usr/bin COPY ./ /www/