Created
May 16, 2022 12:01
-
-
Save jeroen/3e8cf2317912ebf4e3fd9bff732d63c5 to your computer and use it in GitHub Desktop.
Package build errors with parallel make on Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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