在Dockerfile里面增加以下红色的部分
FROM hub.chinacloud.com/common/jdk:8
MAINTAINER xxx@chinacloud.com.cn
RUN mkdir -p /root/jar_unifiedplatform
&& mkdir -p /my_proj/unifiedplatform/files
&& chmod 777 /my_proj/unifiedplatform/files
&& rm -rf /etc/localtime
&& /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&& echo 'Asia/Shanghai' >/etc/timezone
COPY unifiedplatform-1.0.0.jar application.yml unifiedplatform.sh /root/jar_unifiedplatform/
RUN chmod a+x /root/jar_unifiedplatform/unifiedplatform.sh
WORKDIR /root/jar_unifiedplatform/
EXPOSE 6607
CMD ["/root/jar_unifiedplatform/unifiedplatform.sh", "run"]