aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fr24feed/Dockerfile14
1 files changed, 8 insertions, 6 deletions
diff --git a/fr24feed/Dockerfile b/fr24feed/Dockerfile
index 07c00d3..470f0fd 100644
--- a/fr24feed/Dockerfile
+++ b/fr24feed/Dockerfile
@@ -1,28 +1,29 @@
# Alpine is a bit too extreme (it doesn't have /etc/localtime, no support for
# hostname -I, etc.).
-
FROM debian:stretch-slim AS base
# Those are weird hacks, but the alternative (using the apt repository) was
# unsuitable (no systemctl, etc.).
-FROM base as base-386
+# The latest versions of the fr24feed binary for i386/x86_64/armhf as of
+# 2020-01-26, according to https://www.flightradar24.com/share-your-data.
+FROM base AS env-386
ENV fr24feed_directory=linux_x86_binaries
ENV fr24feed_version=1.0.24-5
ENV fr24feed_archive_suffix=i386
-FROM base AS base-amd64
+FROM base AS env-amd64
ENV fr24feed_directory=linux_x86_64_binaries
ENV fr24feed_version=1.0.24-5
ENV fr24feed_archive_suffix=amd64
-FROM base AS base-arm
+FROM base AS env-arm
ENV fr24feed_directory=rpi_binaries
ENV fr24feed_version=1.0.24-7
ENV fr24feed_archive_suffix=armhf
ARG TARGETARCH
-FROM base-$TARGETARCH
+FROM env-$TARGETARCH
LABEL maintainer="Egor Tensin <Egor.Tensin@gmail.com>"
@@ -38,7 +39,8 @@ RUN runtime_deps='ca-certificates procps' && \
WORKDIR /tmp
ADD ["https://repo-feed.flightradar24.com/$fr24feed_directory/$fr24feed_archive_name", "./"]
-RUN tar xzf "$fr24feed_archive_name"
+RUN tar xzf "$fr24feed_archive_name" && \
+ rm -- "$fr24feed_archive_name"
COPY ["fr24feed.ini", "/etc/"]