Skip to content

Commit

Permalink
Update appendix
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Oct 18, 2024
1 parent 83c33b5 commit a8e7120
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions appendix
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit a8e7120

Please sign in to comment.