|  | @@ -0,0 +1,35 @@
 | 
	
		
			
				|  |  | +FROM hub.evbj.easou.com/dev/centos:7.9.2009
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +LABEL author="robert[robert_du@easou.cn]"
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +ENV LANG en_US.UTF-8
 | 
	
		
			
				|  |  | +ENV TZ=Asia/Shanghai
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +COPY entrypoint.sh /usr/bin/entrypoint.sh
 | 
	
		
			
				|  |  | +COPY supervisord.service /root/supervisord.service
 | 
	
		
			
				|  |  | +COPY install_supervisor.sh /root/install_supervisor.sh
 | 
	
		
			
				|  |  | +COPY epel.repo /etc/yum.repos.d/centos.repo
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +# install supervisor & nginx
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +RUN rm -f /etc/yum.repos.d/CentOS-* ; yum makecache \
 | 
	
		
			
				|  |  | +    && yum -y install wget rsync lsof crontabs vim psmisc\
 | 
	
		
			
				|  |  | +    && mkdir -p /app/soft /cron/root \
 | 
	
		
			
				|  |  | +    && curl -O http://10.26.22.113:9000/book/api-tengine/nginx-2.0.3.tar.gz \
 | 
	
		
			
				|  |  | +    && curl -O http://10.26.22.113:9000/psop/soft/supervisor-4.2.4.tar.gz \
 | 
	
		
			
				|  |  | +    && curl -O http://10.26.22.113:9000/psop/soft/setuptools-42.0.2.zip \
 | 
	
		
			
				|  |  | +    && tar -zxf supervisor-4.2.4.tar.gz -C /root/ \
 | 
	
		
			
				|  |  | +    && unzip -d /root/ setuptools-42.0.2.zip \
 | 
	
		
			
				|  |  | +    && tar xf nginx-2.0.3.tar.gz -C /app/soft/ \
 | 
	
		
			
				|  |  | +    && rm -rf nginx-2.0.3.tar.gz supervisor-4.2.4.tar.gz setuptools-42.0.2.zip \
 | 
	
		
			
				|  |  | +    && cd /app/soft ;ln -s /app/soft/nginx-2.0.3 nginx \
 | 
	
		
			
				|  |  | +    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
 | 
	
		
			
				|  |  | +    && sh /root/install_supervisor.sh \
 | 
	
		
			
				|  |  | +    && chmod +x /usr/bin/entrypoint.sh
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +COPY root /var/spool/cron/root
 | 
	
		
			
				|  |  | +COPY nginx.ini /etc/supervisord.d/nginx.ini
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +#start nginx
 | 
	
		
			
				|  |  | +ENTRYPOINT ["entrypoint.sh"]
 | 
	
		
			
				|  |  | +CMD ["supervisord"]
 |