-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile.r
More file actions
25 lines (23 loc) · 940 Bytes
/
Dockerfile.r
File metadata and controls
25 lines (23 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This image adds R support to the base image.
FROM australia-southeast1-docker.pkg.dev/analysis-runner/images/driver-base:1.5
ENV MAMBA_ROOT_PREFIX /root/micromamba
ENV PATH $MAMBA_ROOT_PREFIX/bin:$PATH
RUN apt update && \
# Some R packages require a C compiler during installation.
apt install -y build-essential && \
rm -r /var/lib/apt/lists/* && \
rm -r /var/cache/apt/* && \
wget -qO- https://api.anaconda.org/download/conda-forge/micromamba/0.8.2/linux-64/micromamba-0.8.2-he9b6cbd_0.tar.bz2 | tar -xvj -C /usr/local bin/micromamba && \
mkdir $MAMBA_ROOT_PREFIX && \
micromamba install -y --prefix $MAMBA_ROOT_PREFIX \
-c cpg -c bioconda -c conda-forge \
bioconductor-biomart \
r-argparser \
r-arrow \
r-base \
r-devtools \
r-essentials \
r-googlecloudstorager \
r-tidyverse \
r-viridis && \
rm -r /root/micromamba/pkgs