Based on Ubuntu

RUN apt-get update && \
     apt-get install -yq tzdata && \
     ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
     dpkg-reconfigure -f noninteractive tzdata

Based on CentOS

FROM centos:latest

ENV TZ Asia/Shanghai

Based on Debian

FROM debian:10

ENV TZ="Asia/Shanghai"
Likes(0)

Comment list count 0 Comments

No Comments