基於ubuntu構建R-4.0.0版本docker鏡像
記錄只是爲了方便一部安裝所有依賴,免得持續的重試浪費時間
直接附上Dockerfile
from ubuntu:latest
WORKDIR /root/
RUN apt update && apt install wget -y && \
wget http://mirrors.ustc.edu.cn/CRAN/src/base/R-4/R-4.0.0.tar.gz && \
tar -zxf R-4.0.0.tar.gz && \
apt autoremove && apt clean
WORKDIR /root/R-4.0.0
RUN apt update && \
apt install g++ gfortran libreadline-dev zlib1g-dev libbz2-dev liblzma-dev libpcre2-dev libcurl4-openssl-dev make -y && \
./configure --with-x=no && \
make && \
make install && \
apt autoremove && apt clean