rdockerfileubuntu-18.04silentsilent-installer

How to silently install r-base in an ubuntu docker image


I need to install r-base within an ubuntu:18.04 dockerimage. I am doing this while building my image via

RUN apt-get update; apt-get install -y r-base [many other packages]

along with many other package installations. The problem is, that while setting up r-base at the end of the installation process, it asks for user input for timezone followed by city within the specified timezone. I obviously cannot enter the data while building the container. How would I manage to install r-base anyways?


Solution

  • From AskUbuntu, you should set

    ENV DEBIAN_FRONTEND=noninteractive