Skip to content

Commit 303a2c4

Browse files
committed
fix: try to make timezone intall noninteractive
1 parent eda9665 commit 303a2c4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Dockerfile-16

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,18 @@ RUN chown -R postgres:postgres /usr/lib/postgresql
103103
RUN ln -sf /usr/lib/postgresql/share/postgresql/timezonesets /usr/share/postgresql/timezonesets
104104

105105

106-
ENV DEBIAN_FRONTEND=noninteractive
107-
RUN apt-get update && \
106+
ENV DEBIAN_FRONTEND=noninteractive \
107+
DEBCONF_NONINTERACTIVE_SEEN=true \
108+
TZ=Etc/UTC \
109+
TERM=linux
110+
111+
RUN echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections && \
112+
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections && \
113+
apt-get update && \
108114
apt-get install -y --no-install-recommends tzdata && \
109115
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
110-
dpkg-reconfigure -f noninteractive tzdata
116+
dpkg-reconfigure -f noninteractive tzdata && \
117+
rm -rf /var/lib/apt/lists/*
111118

112119
RUN apt-get update && \
113120
apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)