set date
FROM alpine:3.8
RUN apk add --no-cache tzdata && rm -rf /var/cache/apk/*
ENV TZ Asia/Shanghai
RUN ln -s /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
docker run -it --rm -e TZ=Asia/Shanghai alpine:3.8 ash
创建/etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime