Reputation: 8047
I'm just trying ubuntu:19.04 on docker image, I wish to install tcl in the image so I have:
RUN apt update && apt install tcl
Then it will give some interactive commands:
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.
1. Africa 3. Antarctica 5. Arctic 7. Atlantic 9. Indian 11. SystemV 13. Etc
2. America 4. Australia 6. Asia 8. Europe 10. Pacific 12. US
I've 2 problems here:
(1) If I write this command for "RUN" in Docker file, after inputing a number here, "docker build ." seems to be hang by it.
(2) I wish I don't have to manually input a choice, do I have any way to feed a choice in "RUN" so that its automated?
Upvotes: 47
Views: 30252
Reputation: 639
This worked for me.
ENV TZ=Asia/Kolkata \
DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install tzdata
Upvotes: 25
Reputation: 45243
Did you try to disable it?
FROM ubuntu:19.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt install -y tcl
Upvotes: 63