1234567891011121314151617181920 |
- FROM hub.evbj.easou.com/dev/centos68-resin:3.1.16-jdk7
- MAINTAINER scofield[scofield_shi@easou.cn]
- COPY release /etc/release
- COPY resin.conf /app/soft/resin-pro-3.1.16/conf/resin.conf
- COPY entrypoint.sh /usr/bin/entrypoint.sh
- COPY resin.ini /etc/supervisor/conf.d/resin.ini
- COPY rsyncd.wapage /etc/rsyncd.wapage
- COPY release /etc/release
- RUN yum install -y rsync
- && yum install -y wget rsync epel-release \
- && yum install -y supervisor \
- && export RELEASE=`head -n 1 /etc/release` \
- && rsync -vzrtopg --progress $RELEASE/wapage2web_baidu.war /app/soft/resin-pro-3.1.16/webapps/ROOT.war --password-file=/etc/rsyncd.wapage
- #start resin
- ENTRYPOINT ["entrypoint.sh"]
- CMD ["/usr/bin/supervisord","-c", "/etc/supervisor/supervisord.conf"]
|