We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c35539f + a8e7120 commit 4b811b2Copy full SHA for 4b811b2
appendix
@@ -8,8 +8,10 @@ RUN PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && \
8
${REPO_DIR}/rocker.sh
9
10
# Install extra cmd line packages after R installation
11
-RUN apt-get update && \
12
- 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')
13
+ apt-get update && \
14
+ apt-get install --yes --no-install-recommends $package_list && \
15
apt-get autoremove --purge && \
16
apt-get clean && \
17
rm -rf /var/lib/apt/lists/*
0 commit comments