logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: d2def30eea3ffc2a3680fc745ee111b53eeb8d37
parent 40ae8c82478338f12cdf5aa1db9d42b6eaf5ffe5
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Wed,  4 Feb 2015 11:52:09 +0100

Merge pull request #212 from glogiotatidis/docker

Add Docker support.

Diffstat:

ADockerfile21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -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"]