the recent addition of: ```RUN apt-get update -y ...
# proj-agent
n
the recent addition of:
Copy code
RUN apt-get update -y \
    && apt-get install -y curl make git build-essential jq gettext \
    && python3 -m pip install poetry --break-system-packages
to the Dockerfile aught change to:
Copy code
RUN apt-get update \
echo "Installing wget and jq. Curl is already installed." \
&& PKGS=(wget jq) \
&& DEPS=(libjq1 libonig5) \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --no-install-recommends "${PKGS[@]}" "${DEPS[@]}" \
\
&& echo "Installing binutils and deps" \
&& PKGS=(binutils) \
&& DEPS=(binutils-common binutils-x86-64-linux-gnu libbinutils libctf-nobfd0 libctf0 libgprofng0 libjansson4) \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --no-install-recommends "${PKGS[@]}" "${DEPS[@]}" \
\
&& echo "Installing git and deps" \
&& PKGS=(git) \
&& DEPS=(git-man libcurl3t64-gnutls liberror-perl libexpat1 libgdbm-compat4t64 libngtcp2-16 libngtcp2-crypto-gnutls8 libperl5.40 perl perl-modules-5.40) \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --no-install-recommends "${PKGS[@]}" "${DEPS[@]}" \
\
&& echo "Installing gettext and deps" \
&& PKGS=(gettext) \
&& DEPS=(gettext-base libgomp1 libxml2) \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --no-install-recommends "${PKGS[@]}" "${DEPS[@]}" \
\
&& echo "installing make build-essential and deps" \ 
&& PKGS=(make build-essential) \
&& DEPS=(bzip2 cpp cpp-14 cpp-14-x86-64-linux-gnu cpp-x86-64-linux-gnu dpkg-dev g++ g++-14 g++-14-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-14 gcc-14-x86-64-linux-gnu gcc-x86-64-linux-gnu libasan8 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libdpkg-perl libgcc-14-dev libgomp1 libhwasan0 libisl23 libitm1 liblsan0 libmpc3 libmpfr6 libquadmath0 libstdc++-14-dev libtsan2 libubsan1 linux-libc-dev patch rpcsvc-proto) \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y --no-install-recommends "${PKGS[@]}" "${DEPS[@]}" \
\
since:
Copy code
docker run gitlab.wolfspyre.io:443/wpl_containers/dependency_proxy/containers/nikolaik/python-nodejs:python3.12-nodejs24-slim "ls" "/etc/apt/apt.conf.d/"

01autoremove                70debconf                   docker-autoremove-suggests  docker-clean                docker-gzip-indexes         docker-no-languages
that means that docker won't keep any caches around by default .... but it stil doesn't ENTIRELY clean up after itself ... doing something like this will help future you remember what you WANTED to install and what was a dependency AND will break if an upstream package changes significantly such that its name /version changes to no longer match what was declared .... yes, this causes breakage more often, but it's intentional to inform the admin when something under the covers changed.... you're making a durable artifact.. be explicit about what you're adding to it. my $.03