diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-11 14:13:19 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-11 14:13:19 +0300 |
commit | d80aa61e5ecbfa0e456d86d2e3ddce2817291396 (patch) | |
tree | b5f219b4d1eb2b0917b5364dc440978dcc83c586 | |
parent | add Travis configuration (diff) | |
download | fr24feed-d80aa61e5ecbfa0e456d86d2e3ddce2817291396.tar.gz fr24feed-d80aa61e5ecbfa0e456d86d2e3ddce2817291396.zip |
dump1090: dynamic architecture detection
-rw-r--r-- | dump1090/Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
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 |