mirror of https://github.com/dnomd343/echoIP
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							20 lines
						
					
					
						
							989 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							20 lines
						
					
					
						
							989 B
						
					
					
				
								FROM alpine as iconv
							 | 
						|
								COPY ./conf/docker/iconv.sh /
							 | 
						|
								RUN sh /iconv.sh
							 | 
						|
								
							 | 
						|
								FROM alpine
							 | 
						|
								LABEL maintainer="dnomd343"
							 | 
						|
								COPY . /var/www/echoIP
							 | 
						|
								COPY --from=iconv /tmp/iconv/ /usr/local/lib/
							 | 
						|
								RUN apk --update add --no-cache nginx curl nodejs redis php7 php7-fpm php7-gmp php7-json php7-iconv php7-redis php7-sqlite3 php7-openssl php7-mbstring && \
							 | 
						|
								    rm /usr/lib/php7/modules/iconv.so && ln -s /usr/local/lib/iconv.so /usr/lib/php7/modules/ && \
							 | 
						|
								    mv /usr/local/lib/libiconv.so /usr/local/lib/libiconv.so.2 && \
							 | 
						|
								    mkdir -p /run/nginx && touch /run/nginx/nginx.pid && \
							 | 
						|
								    echo "daemonize yes" >> /etc/redis.conf && \
							 | 
						|
								    cp /var/www/echoIP/conf/docker/init.sh / && \
							 | 
						|
								    cp /var/www/echoIP/conf/docker/ip.conf /etc/nginx/echoip.conf && \
							 | 
						|
								    cp -f /var/www/echoIP/conf/docker/nginx.conf /etc/nginx/nginx.conf && \
							 | 
						|
								    cp /var/www/echoIP/conf/docker/init.sh / && \
							 | 
						|
								    sed -i '$i\0\t0\t*\t*\t*\t/var/www/echoIP/backend/qqwryUpdate.sh' /var/spool/cron/crontabs/root
							 | 
						|
								EXPOSE 1601
							 | 
						|
								CMD ["sh","init.sh"]
							 | 
						|
								
							 |