Update Dockerfile
This commit is contained in:
		
							parent
							
								
									23f628669a
								
							
						
					
					
						commit
						97eacb8b34
					
				
							
								
								
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Dockerfile
									
									
									
									
									
								
							@ -20,14 +20,18 @@ ENV INSTANCE_NAME=searxng \
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
WORKDIR /usr/local/searxng
 | 
					WORKDIR /usr/local/searxng
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN apk add --no-cache brotli tini openssl mailcap && rm -rf /root/.cache
 | 
					# install necessary runtime packages
 | 
				
			||||||
 | 
					RUN apk add --no-cache brotli tini openssl mailcap libxml2 libxslt && rm -rf /root/.cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY requirements.txt ./requirements.txt
 | 
					# build and install uwsgi
 | 
				
			||||||
 | 
					RUN apk add --no-cache -t build-dependencies gcc libc-dev linux-headers && pip install --no-cache "uwsgi~=2.0.0" \
 | 
				
			||||||
RUN apk add --no-cache -t build-dependencies gcc libc-dev linux-headers && pip install --no-cache -r requirements.txt \
 | 
					 | 
				
			||||||
&& apk del build-dependencies \
 | 
					&& apk del build-dependencies \
 | 
				
			||||||
&& rm -rf /root/.cache
 | 
					&& rm -rf /root/.cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# install necessary python packages
 | 
				
			||||||
 | 
					COPY requirements.txt ./requirements.txt
 | 
				
			||||||
 | 
					RUN pip install --no-cache -r requirements.txt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
COPY --chown=searxng:searxng dockerfiles ./dockerfiles
 | 
					COPY --chown=searxng:searxng dockerfiles ./dockerfiles
 | 
				
			||||||
COPY --chown=searxng:searxng searx ./searx
 | 
					COPY --chown=searxng:searxng searx ./searx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user