Skip to content

Commit eda9665

Browse files
committed
fix: non interactive tzdata
1 parent ebcb94b commit eda9665

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile-15

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ 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
106107
RUN apt-get update && \
107-
apt-get install -y --no-install-recommends tzdata
108-
109-
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
110-
dpkg-reconfigure --frontend noninteractive tzdata
108+
apt-get install -y --no-install-recommends tzdata && \
109+
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
110+
dpkg-reconfigure -f noninteractive tzdata
111111

112112
RUN apt-get update && \
113113
apt-get install -y --no-install-recommends \

Dockerfile-16

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ 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
106107
RUN apt-get update && \
107-
apt-get install -y --no-install-recommends tzdata
108-
109-
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
110-
dpkg-reconfigure --frontend noninteractive tzdata
108+
apt-get install -y --no-install-recommends tzdata && \
109+
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
110+
dpkg-reconfigure -f noninteractive tzdata
111111

112112
RUN apt-get update && \
113113
apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)