logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 1b77befe1fb1dbf82f99db69f857d21a7f0fdd6e
parent: f2cbefeb54164fb659c5901269d0210ad682861c
Author: Alexandre Flament <alex@al-f.net>
Date:   Wed, 10 Jun 2015 19:09:57 +0200

Merge pull request #367 from glogiotatidis/dockerfileupdate

Update Dockerfile.

Diffstat:

Dockerfile | 25+++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -1,21 +1,22 @@ -FROM debian:stable +FROM python:2.7-slim + +WORKDIR /app + +RUN useradd searx + +EXPOSE 5000 +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 \ - python-dev python2.7-minimal python-virtualenv \ - python-pybabel python-pip zlib1g-dev \ - libxml2-dev libxslt1-dev build-essential \ - openssl + zlib1g-dev libxml2-dev libxslt1-dev libffi-dev build-essential \ + libssl-dev openssl && \ + rm -rf /var/lib/apt/lists/* -RUN useradd searx +RUN pip install --no-cache uwsgi -WORKDIR /app -RUN pip install uwsgi COPY requirements.txt /app/requirements.txt -RUN pip install -r requirements.txt +RUN pip install --no-cache -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"]