Skip to content

Commit 4b811b2

Browse files
authored
Merge pull request #57 from nmfs-opensci/eeholmes-patch-1
Update appendix
2 parents c35539f + a8e7120 commit 4b811b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

appendix

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ RUN PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && \
88
${REPO_DIR}/rocker.sh
99

1010
# 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 && \
11+
# The package_list part is reading the file and doing clean-up to just have the list of packages
12+
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 && \
1315
apt-get autoremove --purge && \
1416
apt-get clean && \
1517
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)