diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-07 02:28:22 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-07 02:38:43 +0300 |
commit | 3e0d799ee8466023d3935e9688aab650b04d2a5f (patch) | |
tree | ac122b3f559b3ef9b57540b0c5e1f4d7deb4cdff /dump1090 | |
parent | Makefile: best practices (diff) | |
download | fr24feed-3e0d799ee8466023d3935e9688aab650b04d2a5f.tar.gz fr24feed-3e0d799ee8466023d3935e9688aab650b04d2a5f.zip |
Dockerfile: best practices
Diffstat (limited to 'dump1090')
-rw-r--r-- | dump1090/Dockerfile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dump1090/Dockerfile b/dump1090/Dockerfile index 1c8b443..cbbd7ce 100644 --- a/dump1090/Dockerfile +++ b/dump1090/Dockerfile @@ -2,7 +2,6 @@ FROM debian:stretch-slim AS builder # Variables: ARG DUMP1090_VERSION=3.8.0 -ENV DUMP1090_VERSION="${DUMP1090_VERSION}" WORKDIR /tmp @@ -14,12 +13,12 @@ RUN build_deps='build-essential debhelper librtlsdr-dev pkg-config dh-systemd li apt-get update && \ DEBIAN_FRONTEND=noninteractive \ apt-get install -y --no-install-recommends $build_deps && \ - tar xzf dump1090-${DUMP1090_VERSION}.tar.gz && \ - cd -- dump1090-${DUMP1090_VERSION} && \ + tar xzf "dump1090-$DUMP1090_VERSION.tar.gz" && \ + cd -- "dump1090-$DUMP1090_VERSION" && \ dpkg-buildpackage -b && \ cd -- .. && \ dump1090_arch="$( dpkg --print-architecture )" && \ - mv -- dump1090-fa_${DUMP1090_VERSION}_${dump1090_arch}.deb dump1090-fa.deb + mv -- "dump1090-fa_${DUMP1090_VERSION}_${dump1090_arch}.deb" dump1090-fa.deb FROM debian:stretch-slim |