From d80aa61e5ecbfa0e456d86d2e3ddce2817291396 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 11 Jan 2020 14:13:19 +0300 Subject: dump1090: dynamic architecture detection --- dump1090/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dump1090') diff --git a/dump1090/Dockerfile b/dump1090/Dockerfile index c9c7a27..0edd388 100644 --- a/dump1090/Dockerfile +++ b/dump1090/Dockerfile @@ -6,7 +6,6 @@ WORKDIR /tmp # Variables: ARG DUMP1090_VERSION=3.7.2 -ARG DUMP1090_ARCH=armhf # Don't prompt: ENV DEBIAN_FRONTEND=noninteractive @@ -27,7 +26,8 @@ RUN build_deps='build-essential debhelper librtlsdr-dev pkg-config dh-systemd li dpkg-buildpackage -b && \ dpkg-buildpackage -Tclean && \ cd -- .. && \ - apt-get install -yq ./dump1090-fa_${DUMP1090_VERSION}_${DUMP1090_ARCH}.deb && \ + dump1090_arch="$( dpkg --print-architecture )" && \ + apt-get install -yq ./dump1090-fa_${DUMP1090_VERSION}_${dump1090_arch}.deb && \ rm -rf -- dump1090-${DUMP1090_VERSION}.tar.gz dump1090-${DUMP1090_VERSION}/ && \ find . -mindepth 1 -maxdepth 1 -type f -\( -name '*.buildinfo' -o -name '*.changes' -o -name '*.deb' -\) -delete && \ apt-get purge -yq --auto-remove -o APT::AutoRemove::RecommendsImportant=false $build_deps -- cgit v1.2.3