From f248913ce803c1821c9819e015227a608808fb67 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 29 Jun 2020 10:48:31 +0200 Subject: [PATCH] add checkupdates --- Dockerfile | 1 + checkupdates | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 checkupdates diff --git a/Dockerfile b/Dockerfile index e422658..2def035 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,7 @@ ARG DUMB_INIT_VERSION COPY --from=toolbuilder /build/build /usr/local/sbin/gosu COPY --from=toolbuilder /dumb-init /usr/local/sbin/dumb-init COPY apt-install /bin/apt-install +COPY checkupdates /bin/checkupdates CMD "bash" LABEL version.debian=buster \ version.gosu=$GOSU_VERSION \ diff --git a/checkupdates b/checkupdates new file mode 100755 index 0000000..e05352c --- /dev/null +++ b/checkupdates @@ -0,0 +1,5 @@ +#!/bin/sh + +apt-get -qy update > /dev/null +apt-get -o Debug::NoLocking=yes -s dist-upgrade -y | awk '/^Inst/ {print $2 " " $5}' | wc -l +rm -rf /var/lib/apt/lists/*