当我们基于ubuntu镜像构建Docker的时候,偶尔会出现 please select the geographic area in which you live. 让我们选择时区
please select the geographic area in which you live.
原因是ubuntu 18.04后没有默认的系统时区,安装tzdata会出现交互式时区设置
Dockerfile 开头加上
ARG DEBIAN_FRONTEND=noninteractive ENV TZ=Asia/Shanghai