Skip to content

Commit bbe9295

Browse files
authored
fix(coordinator): Add timezone info in Dockerfile (#4363)
As titled.
1 parent c02b1d7 commit bbe9295

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

k8s/dockerfiles/coordinator.Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,17 @@ FROM ubuntu:22.04 AS coordinator
3636
ENV DEBIAN_FRONTEND=noninteractive
3737

3838
RUN apt-get update -y && \
39-
apt-get install -y sudo python3-pip openmpi-bin curl tzdata netcat && \
39+
apt-get install -y sudo python3-pip openmpi-bin curl locales tzdata netcat && \
40+
locale-gen en_US.UTF-8 && \
4041
apt-get clean -y && \
4142
rm -rf /var/lib/apt/lists/*
4243

44+
ENV LANG en_US.UTF-8
45+
ENV LANGUAGE en_US:en
46+
ENV LC_ALL en_US.UTF-8
47+
ENV TZ=Asia/Shanghai
48+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
49+
4350
ENV GRAPHSCOPE_HOME=/opt/graphscope
4451

4552
RUN useradd -m graphscope -u 1001 \

0 commit comments

Comments
 (0)