FROM rocker/r-base:4.2.3 ## copy Rscript files COPY ./*.R . RUN Rscript install_pkgs.R # command to run on container start CMD [ "bash" ]