Score:0

Automating options when using apt-get install

cn flag

I have this step in my dockerfile

RUN apt install libpq-dev libxml2-dev libxslt1-dev libldap2-dev libssl-dev -y

And when I build it, it stuck with the prompts

enter image description here

How do I get pass this with pre-selected options?

James Lin avatar
cn flag
OK Found this https://askubuntu.com/questions/909277/avoiding-user-interaction-with-tzdata-when-installing-certbot-in-a-docker-contai
jp flag
Instead of `apt`, use `apt-get` in scripts & automation.
in flag
Does this answer your question? [How to install tzdata on a ubuntu docker image?](https://serverfault.com/questions/949991/how-to-install-tzdata-on-a-ubuntu-docker-image)
James Lin avatar
cn flag
Thanks I have solved my problem yesterday.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.