Dockerfile-basenew 766 B

12345678910111213141516171819202122
  1. FROM hub.evbj.easou.com/dev/centos68-resin:3.1.16-jdk7
  2. MAINTAINER scofield[scofield_shi@easou.cn]
  3. COPY release /etc/release
  4. COPY resin.conf /app/soft/resin-pro-3.1.16/conf/resin.conf
  5. COPY entrypoint.sh /usr/bin/entrypoint.sh
  6. COPY rsyncd.wapage /etc/rsyncd.wapage
  7. COPY release /etc/release
  8. RUN yum install -y rsync \
  9. && yum install -y wget rsync epel-release \
  10. && yum install -y vixie-cron \
  11. && yum install -y supervisor \
  12. && chmod +x /usr/bin/entrypoint.sh \
  13. && export RELEASE=`head -n 1 /etc/release` \
  14. && rsync -vzrtopg --progress $RELEASE/wapage2web_baidu.war /app/soft/resin-pro-3.1.16/webapps/ROOT.war --password-file=/etc/rsyncd.wapage
  15. COPY supervisord.conf /etc/supervisord.conf
  16. #start resin
  17. ENTRYPOINT ["entrypoint.sh"]
  18. CMD ["/usr/bin/supervisord"]