|
@@ -0,0 +1,23 @@
|
|
|
|
+FROM hub.evbj.easou.com/pro/dashouye:1.0.1
|
|
|
|
+MAINTAINER stone[stone_shi@staff.easou.com]
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ADD nginx.conf /app/ecom/tengine/conf/nginx.conf
|
|
|
|
+ADD root /var/spool/cron/root
|
|
|
|
+ADD entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
|
+ADD resin.ini /etc/supervisor/conf.d/resin.ini
|
|
|
|
+ADD rsyncd.wapage /etc/rsyncd.wapage
|
|
|
|
+ADD release /etc/release
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+RUN yum install -y rsync \
|
|
|
|
+ && rm -rf /data/project/* \
|
|
|
|
+ && chmod 600 /etc/rsyncd.wapage \
|
|
|
|
+ && chmod +x /usr/bin/entrypoint.sh \
|
|
|
|
+ && chmod +x /cron/root/nginxlog_cut.sh \
|
|
|
|
+ && export RELEASE=`head -n 1 /etc/release` \
|
|
|
|
+ && rsync -vzrtopg --progress $RELEASE/ROOT_com.war /app/soft/resin-pro-3.1.6/webapps/ROOT.war --password-file=/etc/rsyncd.wapage
|
|
|
|
+
|
|
|
|
+#start resin
|
|
|
|
+ENTRYPOINT ["entrypoint.sh"]
|
|
|
|
+CMD ["/usr/bin/supervisord","-c", "/etc/supervisor/supervisord.conf"]
|