|  | @@ -1,9 +1,11 @@
 | 
	
		
			
			| 1 | 1 |  FROM alpine:3.3
 | 
	
		
			
			|  | 2 | +MAINTAINER searx <https://github.com/asciimoo/searx>
 | 
	
		
			
			|  | 3 | +LABEL description "A privacy-respecting, hackable metasearch engine."
 | 
	
		
			
			| 2 | 4 |  
 | 
	
		
			
			| 3 | 5 |  ENV BASE_URL=False IMAGE_PROXY=False
 | 
	
		
			
			| 4 | 6 |  EXPOSE 8888
 | 
	
		
			
			| 5 | 7 |  WORKDIR /usr/local/searx
 | 
	
		
			
			| 6 |  | -CMD ["./run.sh"]
 | 
	
		
			
			|  | 8 | +CMD ["/usr/bin/tini","--","/usr/local/searx/run.sh"]
 | 
	
		
			
			| 7 | 9 |  
 | 
	
		
			
			| 8 | 10 |  RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \
 | 
	
		
			
			| 9 | 11 |   && echo '#!/bin/sh' >> run.sh \
 | 
	
	
		
			
			|  | @@ -15,7 +17,8 @@ RUN adduser -D -h /usr/local/searx -s /bin/sh searx searx \
 | 
	
		
			
			| 15 | 17 |  
 | 
	
		
			
			| 16 | 18 |  COPY requirements.txt ./requirements.txt
 | 
	
		
			
			| 17 | 19 |  
 | 
	
		
			
			| 18 |  | -RUN apk -U add \
 | 
	
		
			
			|  | 20 | +RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
 | 
	
		
			
			|  | 21 | + && apk -U add \
 | 
	
		
			
			| 19 | 22 |      build-base \
 | 
	
		
			
			| 20 | 23 |      python \
 | 
	
		
			
			| 21 | 24 |      python-dev \
 | 
	
	
		
			
			|  | @@ -28,6 +31,7 @@ RUN apk -U add \
 | 
	
		
			
			| 28 | 31 |      openssl \
 | 
	
		
			
			| 29 | 32 |      openssl-dev \
 | 
	
		
			
			| 30 | 33 |      ca-certificates \
 | 
	
		
			
			|  | 34 | +    tini@commuedge \
 | 
	
		
			
			| 31 | 35 |   && pip install --no-cache -r requirements.txt \
 | 
	
		
			
			| 32 | 36 |   && apk del \
 | 
	
		
			
			| 33 | 37 |      build-base \
 |