Open Analytics r-base installs a lot of utilities and packages. What are the actual dependencies Shinyproxy has under the hood?
In other words, what is the lightest R install I could have with Shinyproxy?
Open Analytics r-base installs a lot of utilities and packages. What are the actual dependencies Shinyproxy has under the hood?
In other words, what is the lightest R install I could have with Shinyproxy?
In fact the r-base
image is fairly minimal, in the sense that the extraneous packages are all pretty small, but may be useful, and that’s why they are added.
The absolute minimum Dockerfile
would look something like:
FROM ubuntu:18.04
# Add user to 'staff' group, granting them write privileges to /usr/local/lib/R/site.library
RUN useradd docker \
&& mkdir /home/docker \
&& chown docker:docker /home/docker \
&& addgroup docker staff
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
gnupg2 \
&& rm -rf /var/lib/apt/lists/*
RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" > /etc/apt/sources.list.d/cran.list
# note the proxy for gpg
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
ENV R_BASE_VERSION 3.6.1
# Now install R
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
r-base=${R_BASE_VERSION}* \
&& rm -rf /var/lib/apt/lists/*
CMD ["R"]