Adding QEMU static arm binary to build ARM images

This commit is contained in:
Quentin McGaw
2019-04-26 16:02:14 +02:00
parent cc36ba5207
commit 99f48b964b
4 changed files with 31 additions and 3 deletions

View File

@@ -1,8 +1,11 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE:-alpine}:3.9
ARG QEMU=
ARG BUILD_DATE
ARG VCS_REF
# Only installed for ARM devices
ADD .void ${QEMU}? /usr/bin/
LABEL org.label-schema.schema-version="1.0.0-rc1" \
maintainer="quentin.mcgaw@gmail.com" \
org.label-schema.build-date=$BUILD_DATE \
@@ -64,4 +67,5 @@ RUN chown nonrootuser -R /etc/unbound && \
/etc/unbound/root.hints \
/etc/unbound/root.key \
/etc/unbound/unbound.conf \
/etc/unbound/*.bz2
/etc/unbound/*.bz2 && \
rm -f /usr/bin/qemu-arm-static /usr/bin/.void