This commit is contained in:
hailin 2025-05-17 10:42:34 +08:00
parent c98e2a866c
commit 2b51320b68
1 changed files with 5 additions and 0 deletions

View File

@ -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 \