Dockerfile 740 B

1234567891011121314151617181920
  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 resin.ini /etc/supervisor/conf.d/resin.ini
  7. COPY rsyncd.wapage /etc/rsyncd.wapage
  8. COPY release /etc/release
  9. RUN yum install -y rsync
  10. && yum install -y wget rsync epel-release \
  11. && yum install -y supervisor \
  12. && export RELEASE=`head -n 1 /etc/release` \
  13. && rsync -vzrtopg --progress $RELEASE/wapage2web_baidu.war /app/soft/resin-pro-3.1.16/webapps/ROOT.war --password-file=/etc/rsyncd.wapage
  14. #start resin
  15. ENTRYPOINT ["entrypoint.sh"]
  16. CMD ["/usr/bin/supervisord","-c", "/etc/supervisor/supervisord.conf"]