Skip to content

Instantly share code, notes, and snippets.

@richban
Created August 26, 2022 13:15
Show Gist options
  • Save richban/8b42473d7b22eb36117bc2baf44eadc9 to your computer and use it in GitHub Desktop.
Save richban/8b42473d7b22eb36117bc2baf44eadc9 to your computer and use it in GitHub Desktop.
Dockerfiles
FROM rocker/r-ver:4.1.0
RUN apt-get update \
&& apt-get install -y --no-install-recommends apt-utils \
default-jre \
zlib1g-dev \
libgit2-dev \
libstdc++6 \
libpng-dev \
libxml2-dev \
libjpeg-dev \
cmake \
unixodbc \
libtiff5-dev libgmp3-dev \
unixodbc-dev \
mariadb-client \
libmariadbclient-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/* \
&& rm -rf /tmp/* \
&& rm -rf /.cache/*
RUN install2.r Rcpp stringi stringr \
devtools \
&& apt-get clean \
&& rm -rf /var/lib/apt/* \
&& rm -rf /tmp/* \
&& rm -rf /.cache/*
RUN apt-get update -y \
&& apt-get install -y zlib1g-dev pkg-config \
&& install2.r data.table stringi \
&& apt-get clean \
&& rm -rf /var/lib/apt/* \
&& rm -rf /tmp/* \
&& rm -rf /.cache/*
ARG LIBARROW_MINIMAL=false
RUN R -e 'install.packages("arrow")'\
&& apt-get clean \
&& rm -rf /var/lib/apt/* \
&& rm -rf /tmp/* \
&& rm -rf /.cache/*
CMD [ "R" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment