From 05d913f8497c35c5fb102ebd4d166e62c893740f Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 2 Aug 2019 05:09:08 +0000 Subject: [PATCH] Initial commit --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dbe38fc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM python:3-alpine + +RUN apk add --no-cache --virtual .build \ + build-base \ + git \ + libffi-dev \ + libressl-dev \ + libxslt-dev \ + && git clone --depth=1 https://github.com/asciimoo/searx \ + && cd searx \ + && pip3 install -r requirements.txt \ + && pip3 install gunicorn \ + && apk del .build \ + && apk add --no-cache \ + libffi \ + libressl \ + libxslt \ + tini + +WORKDIR /searx + +ENTRYPOINT ["tini", "--", "gunicorn", "searx.webapp", "--bind", "[::]:8000", "-w", "4"]