docker: impossible to create image with python3 because tzdata
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
New
|
Undecided
|
Unassigned | ||
debconf (Debian) |
Fix Released
|
Unknown
|
|||
debconf (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
In my application I have to use both "supervisor" and some ML stuff, so I need to include python-3, numpy and pandas
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y supervisor python3 python3-pip python3-pymongo python3-numpy python3-pandas
This appends with the current ubuntu:latest
sha256:
When I try to make a built of this, I seems that python3 depends on tzdata (and many other things), but then it stops waiting for a user input, and I unable to send an input by hand or other way
Setting up libldap-common (2.4.45+
Setting up libreadline7:amd64 (7.0-3) ...
Setting up tzdata (2018d-1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------
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 4. Australia 7. Atlantic 10. Pacific 13. Etc
2. America 5. Arctic 8. Europe 11. SystemV
3. Antarctica 6. Asia 9. Indian 12. US
Geographic area:
So I am unable to create my docker image!!
This is some kind of regression, 2 weeks ago it worked
Changed in debconf (Debian): | |
status: | Unknown → New |
Changed in debconf (Debian): | |
status: | New → Fix Released |
I have found a work around, when I put in my Dockerfile
FROM ubuntu:latest
RUN apt-get update
# we need to put in a line appart this dependency, or all the image creation stops waiting for a response from the user
RUN apt-get install -y tzdata
RUN apt-get install -y supervisor python3 python3-pip python3-pymongo python3-numpy python3-pandas
It gives a lot of errors, it says that it is going to use /UTC, but it doesn't keep waiting and the docker image is finished