Skip to content

Commit 45023bf

Browse files
committed
chore: link localtime in backend
1 parent be7847d commit 45023bf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/backend/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ RUN apt-get update && \
66
echo "deb [signed-by=/usr/share/keyrings/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt $(. /etc/os-release && echo $VERSION_CODENAME)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
77
apt-get update && \
88
apt-get install -y postgresql-client-17
9-
RUN apt-get install -y --no-install-recommends tzdata && rm -rf /var/lib/apt/lists/*
9+
RUN apt-get update && \
10+
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \
11+
apt-get install -y --no-install-recommends tzdata && \
12+
ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
13+
echo "Etc/UTC" > /etc/timezone
1014
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
11-
RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime
1215
ENV TZ=Etc/UTC
1316
ENV NODE_ENV=production
1417
ENV PORT=3000

0 commit comments

Comments
 (0)