This repository has been archived on 2019-08-06. You can view files and clone it, but cannot push or open issues or pull requests.
searx/Dockerfile

29 lines
793 B
Docker
Raw Permalink Normal View History

2019-08-02 07:09:08 +02:00
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
RUN sed -i -e 's/default_on = False/default_on = True/' searx/plugins/oa_doi_rewrite.py \
&& sed -i -e 's/oadoi.org/sci-hub.tw/' searx/preferences.py
2019-08-02 16:03:11 +02:00
2019-08-02 21:57:58 +02:00
COPY engines/* searx/engines/
COPY result_templates/* searx/templates/oscar/result_templates/
2019-08-02 07:09:08 +02:00
ENTRYPOINT ["tini", "--", "gunicorn", "searx.webapp", "--bind", "[::]:8000", "-w", "4"]