Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 304
Daniel Avatar asked Jan 30 '26 10:01

Daniel


1 Answers

From AskUbuntu, you should set

ENV DEBIAN_FRONTEND=noninteractive
like image 96
al0 Avatar answered Feb 02 '26 02:02

al0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!