在Dockerfile中增加
ENV LANG en_US.UTF-8 RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
command: [java,'-Duser.timezone=GMT+08','-Djava.security.egd=file:/dev/./urandom', '-Xmx200m', '-jar', '/app/app.jar']