mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Add Docker support.
This commit is contained in:
		
							parent
							
								
									40ae8c8247
								
							
						
					
					
						commit
						0265e87e43
					
				
					 1 changed files with 21 additions and 0 deletions
				
			
		
							
								
								
									
										21
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| FROM debian:stable | ||||
| 
 | ||||
| RUN apt-get update && \ | ||||
|     apt-get install -y --no-install-recommends \ | ||||
|             python-dev python2.7-minimal python-virtualenv \ | ||||
|             python-pybabel python-pip zlib1g-dev \ | ||||
|             libxml2-dev libxslt1-dev build-essential \ | ||||
|             openssl | ||||
| 
 | ||||
| RUN useradd searx | ||||
| 
 | ||||
| WORKDIR /app | ||||
| RUN pip install uwsgi | ||||
| COPY requirements.txt /app/requirements.txt | ||||
| RUN pip install -r requirements.txt | ||||
| 
 | ||||
| COPY . /app | ||||
| RUN sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml | ||||
| 
 | ||||
| EXPOSE 5000 | ||||
| CMD ["/usr/local/bin/uwsgi", "--uid", "searx", "--gid", "searx", "--http", ":5000", "-w",  "searx.webapp"] | ||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Giorgos Logiotatidis
						Giorgos Logiotatidis