From 33472380bf65684bab2c568215787718b45c847e Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Fri, 4 Oct 2024 13:41:28 +0200 Subject: [PATCH] dockerfile: one less apt call --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 603b24a..735c3fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,8 +45,7 @@ RUN \ { [[ "${VERSION_BRANCH:0:1}" == "#" ]] && VERSION_BRANCH="main" || true; } && \ echo "$(TZ=UTC date +%Y%m%d-%H%M%S)_$(curl -ssL "https://api.github.com/repos/$VERSION_REPO/commits/$VERSION_BRANCH" | awk '{if ($1=="\"sha\":") {print substr($2,2,7); exit}}')_$VERSION_BRANCH" > /.CONTAINER_VERSION && \ # Clean up: - apt-get remove -q -y "${TEMP_PACKAGES[@]}" && \ - apt-get autoremove -q -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 -y && \ + apt-get autoremove -q -o APT::Autoremove::RecommendsImportant=0 -o APT::Autoremove::SuggestsImportant=0 -y "${TEMP_PACKAGES[@]}" && \ apt-get clean -q -y && \ # test mlat-client /usr/bin/mlat-client --help > /dev/null && \