Dockerfile 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. FROM hub.evbj.easou.com/dev/centos:7.9.2009
  2. LABEL author="robert[robert_du@easou.cn]"
  3. ENV TZ=Asia/Shanghai
  4. ENV JAVA_HOME /usr/java/jdk1.8.0_271
  5. ENV MAVEN_HOME /app/soft/maven3.0.3
  6. COPY entrypoint.sh /usr/bin/entrypoint.sh
  7. #install jdk8 & maven3
  8. RUN yum install -y wget rsync epel-release lsof crontabs vim psmisc svn\
  9. && yum install -y supervisor \
  10. && mkdir -p /usr/java /app/soft /root/.m2/ /root/.subversion/auth/svn.ssl.server/ \
  11. && curl -O http://10.40.21.157:9000/psop/soft/jdk1.8.0_271.tar.gz \
  12. && curl -O http://10.40.21.157:9000/psop/soft/maven3.0.3.tar.gz \
  13. && tar -zxf jdk1.8.0_271.tar.gz -C /usr/java/ \
  14. && tar -zxf maven3.0.3.tar.gz -C /app/soft \
  15. && rm -f jdk1.8.0_271.tar.gz maven3.0.3.tar.gz \
  16. && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
  17. && chmod +x /usr/bin/entrypoint.sh
  18. COPY 2ea92094abd2c97ce8d8036c8fc0087d /root/.subversion/auth/svn.ssl.server/2ea92094abd2c97ce8d8036c8fc0087d
  19. COPY supervisord.conf /etc/supervisord.conf
  20. COPY settings.xml /root/.m2/settings.xml
  21. COPY start.sh /app/start.sh
  22. COPY build.sh /app/build.sh
  23. ENTRYPOINT ["entrypoint.sh"]
  24. CMD ["supervisord"]