Skip to content

Instantly share code, notes, and snippets.

@jeroen
Created May 16, 2022 12:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeroen/3e8cf2317912ebf4e3fd9bff732d63c5 to your computer and use it in GitHub Desktop.
Save jeroen/3e8cf2317912ebf4e3fd9bff732d63c5 to your computer and use it in GitHub Desktop.
Package build errors with parallel make on Ubuntu 18.04
FROM ubuntu:bionic
ENV DEBIAN_FRONTEND noninteractive
RUN \
apt-get update && \
apt-get install -y curl software-properties-common && \
curl https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc && \
add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" && \
apt-get update && \
apt-get -yq install r-base-dev language-pack-en-base
RUN \
curl -O https://cran.r-project.org/src/contrib/MASS_7.3-57.tar.gz &&\
echo "all:" >> Makefile &&\
echo " R CMD INSTALL MASS_7.3-57.tar.gz" >> Makefile
RUN make -j2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment