Dockerfile 998 B

1234567891011121314151617181920212223242526272829
  1. FROM hub.evbj.easou.com/dev/centos:6.8
  2. MAINTAINER scofield[scofield_shi@easou.cn]
  3. ENV JAVA_HOME /usr/java/jdk1.6.0_21
  4. #install
  5. RUN yum install -y wget rsync epel-release \
  6. && yum install -y vixie-cron \
  7. && yum install -y supervisor \
  8. && mkdir -p /usr/local/java /app \
  9. && curl -O http://10.26.22.185:9000/psop/soft/jdk1.6.0_21.tar.gz \
  10. && curl -O http://10.26.22.185:9000/psop/soft/web.tar.gz \
  11. && tar -zxf jdk1.6.0_21.tar.gz -C /usr/local/java/ \
  12. && tar -zxf web.tar.gz -C /app/ \
  13. && rm -f web.tar.gz jdk1.6.0_21.tar.gz \
  14. && rm -f /app/resin-pro-3.1.6/conf/resin.conf
  15. COPY entrypoint.sh /usr/bin/entrypoint.sh
  16. COPY release /etc/release
  17. COPY supervisord.conf /etc/supervisord.conf
  18. COPY resin.conf /app/resin-pro-3.1.6/conf/resin.conf
  19. RUN export RELEASE=`head -n 1 /etc/release` \
  20. && rsync -vzrtopg --progress $RELEASE/wapage2web_baidu.war /app/resin-pro-3.1.6/webapps/ROOT.war --password-file=/etc/rsyncd.wapage
  21. #start miscSearch
  22. ENTRYPOINT ["entrypoint.sh"]
  23. CMD ["supervisord"]