From a8e7120f3421e08cc454ec8e41418c50d1c3dad2 Mon Sep 17 00:00:00 2001 From: Eli Holmes - NOAA Date: Fri, 18 Oct 2024 11:59:13 -0700 Subject: [PATCH] Update appendix --- appendix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/appendix b/appendix index 6905fa6..55aa88e 100644 --- a/appendix +++ b/appendix @@ -8,8 +8,10 @@ RUN PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && \ ${REPO_DIR}/rocker.sh # Install extra cmd line packages after R installation -RUN apt-get update && \ - xargs -a ${REPO_DIR}/apt-extras.txt apt-get install --yes --no-install-recommends && \ +# The package_list part is reading the file and doing clean-up to just have the list of packages +RUN package_list=$(grep -v '^\s*#' ${REPO_DIR}/apt-extras.txt | grep -v '^\s*$' | sed 's/\r//g; s/#.*//; s/^[[:space:]]*//; s/[[:space:]]*$//' | awk '{$1=$1};1') + apt-get update && \ + apt-get install --yes --no-install-recommends $package_list && \ apt-get autoremove --purge && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*