This commit is contained in:
parent
c98e2a866c
commit
2b51320b68
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in New Issue