From aa2b621b6c4df3d16fbc69fe5f04aa416802cfab Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 26 Jan 2020 14:55:35 +0300 Subject: fr24feed: remove the downloaded archive --- fr24feed/Dockerfile | 14 ++++++++------ 1 file 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 " @@ -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/"] -- cgit v1.2.3