mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Merge pull request #367 from glogiotatidis/dockerfileupdate
Update Dockerfile.
This commit is contained in:
		
						commit
						1b77befe1f
					
				
					 1 changed files with 14 additions and 13 deletions
				
			
		
							
								
								
									
										27
									
								
								Dockerfile
									
										
									
									
									
								
							
							
						
						
									
										27
									
								
								Dockerfile
									
										
									
									
									
								
							|  | @ -1,21 +1,22 @@ | ||||||
| FROM debian:stable | FROM python:2.7-slim | ||||||
| 
 | 
 | ||||||
| RUN apt-get update && \ | WORKDIR /app | ||||||
|     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 | RUN useradd searx | ||||||
| 
 | 
 | ||||||
| WORKDIR /app | EXPOSE 5000 | ||||||
| RUN pip install uwsgi | CMD ["/usr/local/bin/uwsgi", "--uid", "searx", "--gid", "searx", "--http", ":5000", "-w",  "searx.webapp"] | ||||||
|  | 
 | ||||||
|  | RUN apt-get update && \ | ||||||
|  |     apt-get install -y --no-install-recommends \ | ||||||
|  |             zlib1g-dev libxml2-dev libxslt1-dev libffi-dev build-essential \ | ||||||
|  |             libssl-dev openssl && \ | ||||||
|  |     rm -rf /var/lib/apt/lists/* | ||||||
|  | 
 | ||||||
|  | RUN pip install --no-cache uwsgi | ||||||
|  | 
 | ||||||
| COPY requirements.txt /app/requirements.txt | COPY requirements.txt /app/requirements.txt | ||||||
| RUN pip install -r requirements.txt | RUN pip install --no-cache -r requirements.txt | ||||||
| 
 | 
 | ||||||
| COPY . /app | COPY . /app | ||||||
| RUN sed -i -e "s/ultrasecretkey/`openssl rand -hex 16`/g" searx/settings.yml | 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
	
	 Alexandre Flament
						Alexandre Flament