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"
Post comment 取消回复