cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Installing R packages for a customer docker container for compute

BenCCC
New Contributor

Hi,

I'm trying to create a customer docker image with some R packages re-installed. However, when I try to use it in a notebook, it can't seem to find the installed packages. The build runs fine.

FROM databricksruntime/rbase:14.3-LTS

## update system libraries
RUN apt-get update && \
apt-get upgrade -y && \
apt-get clean

RUN apt-get -y --no-install-recommends install \
libxml2-dev \
libcairo2-dev \
libsqlite3-dev \
libpq-dev \
libssl-dev \
libcurl4-openssl-dev \
libssh2-1-dev \
unixodbc-dev \
libglpk40


RUN R -e 'install.packages(c(\
"devtools", \
"tidyverse",\
"sparklyr", \
"tidyquant", \
"plotly", \
"quantmod", \
"RTL" \
), \
dependencies = TRUE, \
repos = "https://packagemanager.rstudio.com/cran/__linux_/jammy/latest" \
)'

0 REPLIES 0