]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Fix multiarch docker build.
authorBastien Wirtz <bastien.wirtz@gmail.com>
Wed, 20 May 2020 03:41:05 +0000 (20:41 -0700)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Wed, 20 May 2020 04:53:11 +0000 (21:53 -0700)
Dockerfile.arm32v7
Dockerfile.arm64v8

index 79a7a61fb8f51a264e8b0df872697369aac77cb3..e78d37c8f61f561821c6359ee48ccf7c29fad171 100644 (file)
@@ -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/
 
index 707dd83b1c243397da1bdc241001ccb967f38fcb..1e01245fb4e86eb1b66af721fbc314382088b4ed 100644 (file)
@@ -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/