kubernetes-guide/codeblock/containerization/ubuntu-tz.dockerfile

7 lines
209 B
Docker

FROM ubuntu:latest
RUN apt update -y && \
DEBIAN_FRONTEND="noninteractive" apt -y install tzdata
RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata