diff --git a/Dockerfile b/Dockerfile index 0ce5d76..65d8797 100644 --- a/Dockerfile +++ b/Dockerfile @@ -99,6 +99,8 @@ RUN chown -R postgres:postgres /usr/lib/postgresql RUN ln -sf /usr/lib/postgresql/share/postgresql/timezonesets /usr/share/postgresql/timezonesets +# 设置非交互模式,避免tzdata需要交互输入 +ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ apt-get install -y --no-install-recommends tzdata @@ -106,6 +108,9 @@ RUN apt-get update && \ RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \ dpkg-reconfigure --frontend noninteractive tzdata +# 设置回默认交互模式 +ENV DEBIAN_FRONTEND=interactive + RUN apt-get update && \ apt-get install -y --no-install-recommends \ build-essential \