1)tini启动 启动应用 pid 不等于1
2) 上海时区
3) 容器内应用 进程普通用户启动
[ucmed@VM_210_13_centos tomcat]$ more Dockerfile
FROM tomcat:8.5.66-jdk8-openjdk
VOLUME /tmp
ENV TZ=Asia/Shanghai
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN useradd norootmed -u 1000 -s /bin/bash
USER ucmed
WORKDIR $CATALINA_HOME
EXPOSE 8080
CMD ["catalina.sh", "run"]