summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGiorgos Logiotatidis <seadog@sealabs.net>2015-01-28 00:14:05 +0200
committerGiorgos Logiotatidis <seadog@sealabs.net>2015-02-03 20:43:08 +0200
commit0265e87e437e726b818f7c1c2370e330a318f553 (patch)
treeb33df9e96c32c477b511e280fa9693e58aee9b50 /Dockerfile
parent40ae8c82478338f12cdf5aa1db9d42b6eaf5ffe5 (diff)
downloadsearxng-0265e87e437e726b818f7c1c2370e330a318f553.tar.gz
searxng-0265e87e437e726b818f7c1c2370e330a318f553.zip
Add Docker support.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..831a429e2
--- /dev/null
+++ 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"]