aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dump1090/Dockerfile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-12 16:31:14 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-12 16:31:14 +0300
commit5a6ef47c509163046998b572db60aa390f12ad20 (patch)
tree1ce9fbfbd8cc1fdacb5a418a0dd69be5e90cdd72 /dump1090/Dockerfile
parentfr24feed: update last check date (diff)
downloadfr24feed-5a6ef47c509163046998b572db60aa390f12ad20.tar.gz
fr24feed-5a6ef47c509163046998b572db60aa390f12ad20.zip
Dockerfile: best practices
Diffstat (limited to 'dump1090/Dockerfile')
-rw-r--r--dump1090/Dockerfile19
1 files changed, 8 insertions, 11 deletions
diff --git a/dump1090/Dockerfile b/dump1090/Dockerfile
index f5d2bad..1c8b443 100644
--- a/dump1090/Dockerfile
+++ b/dump1090/Dockerfile
@@ -1,8 +1,5 @@
FROM debian:stretch-slim AS builder
-# Don't prompt:
-ENV DEBIAN_FRONTEND=noninteractive
-
# Variables:
ARG DUMP1090_VERSION=3.8.0
ENV DUMP1090_VERSION="${DUMP1090_VERSION}"
@@ -14,8 +11,9 @@ ADD ["https://github.com/flightaware/dump1090/archive/v${DUMP1090_VERSION}.tar.g
# dump1090 build dependencies (from README at https://github.com/flightaware/dump1090/blob/v3.7.2/README.md):
RUN build_deps='build-essential debhelper librtlsdr-dev pkg-config dh-systemd libncurses5-dev libbladerf-dev' && \
- apt-get update -yq && \
- apt-get install -yq --no-install-recommends $build_deps && \
+ 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} && \
dpkg-buildpackage -b && \
@@ -27,19 +25,18 @@ FROM debian:stretch-slim
LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>"
-# Don't prompt:
-ENV DEBIAN_FRONTEND=noninteractive
-
WORKDIR /tmp
COPY --from=builder ["/tmp/dump1090-fa.deb", "./"]
-RUN apt-get update -yq && \
+RUN apt-get update && \
# Supervisor to run both dump1090-fa and lighttpd:
# lighty-enable-mod depends on Term/ReadLine.pm, which isn't listed as a
# dependency, which is a bug:
- apt-get install -yq --no-install-recommends supervisor libterm-readline-gnu-perl && \
- apt-get install -yq ./dump1090-fa.deb && \
+ DEBIAN_FRONTEND=noninteractive \
+ apt-get install -y --no-install-recommends supervisor libterm-readline-gnu-perl && \
+ DEBIAN_FRONTEND=noninteractive \
+ apt-get install -y ./dump1090-fa.deb && \
rm -- ./dump1090-fa.deb
# Create the /run/dump1090-fa directory, typically created by systemd: