Dockerfile 807 B

123456789101112131415161718192021222324252627
  1. #构建此镜像的基础镜像
  2. FROM tomcat:9.0-jdk8
  3. #指定作者名称
  4. MAINTAINER lijie<lijie@persagy.com>
  5. LABEL tier=backend
  6. LABEL product=bdtp
  7. LABEL project=persagy
  8. LABEL name=meiku
  9. ENV TZ Asia/Shanghai
  10. ENV JAVA_OPTS -Dfile.encoding=UTF-8
  11. ENV JVM "-Xmx2048m -Xms1024m -XX:+UseParallelOldGC -Xloggc:/somewhere/somename.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution"
  12. RUN apt-get install -y --no-install-recommends tzdata \
  13. && rm -rf /var/lib/apt/lists/* \
  14. && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
  15. && echo 'Asia/Shanghai' > /etc/timezone \
  16. && rm -rf ./webapps/*
  17. COPY *.zip .
  18. RUN rm -rf ./webapps/* && unzip *.zip -d ./webapps
  19. RUN mv ./webapps/* ./webapps/ROOT && rm -rf *.zip
  20. COPY entrypoint.sh .
  21. ENTRYPOINT ["sh","./entrypoint.sh"]