Dockerfile 696 B

12345678910111213141516171819
  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 supervisor \
  11. && export RELEASE=`head -n 1 /etc/release` \
  12. && rsync -vzrtopg --progress $RELEASE/wapage2web_baidu.war /app/soft/resin-pro-3.1.16/webapps/ROOT.war --password-file=/etc/rsyncd.wapage
  13. COPY supervisord.conf /etc/supervisord.conf
  14. #start resin
  15. ENTRYPOINT ["entrypoint.sh"]
  16. CMD ["/usr/bin/supervisord"]