FROM tomcat:8.5-jdk8-adoptopenjdk-hotspot
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezoneRUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
RUN apt-get update -y
RUN apt-get install fontconfig -y
RUN fc-cache --force
RUN apt-get install vim -y
RUN find /usr/local/tomcat/bin/catalina.sh | xargs perl -pi -e 's|webresources|webresources -Duser.timezone=GMT+08|g'
EXPOSE 8080
CMD ["catalina.sh", "run"]