# Start from the rocker/rstudio base image which has R and RStudio pre-installed FROM rocker/tidyverse:latest # Update and install Ubuntu packages required by pdftools RUN apt-get update && apt-get install -y \ libpoppler-cpp-dev \ poppler-data # Install the pdftools R package RUN R -e 'install.packages("pdftools")'