Simon Bruder
1524f77648
All checks were successful
continuous-integration/drone/push Build is passing
I don’t know why they let you configure the default DOI resolver but fail if you don’t use oadoi.org
26 lines
698 B
Docker
26 lines
698 B
Docker
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
|
|
|
|
ENTRYPOINT ["tini", "--", "gunicorn", "searx.webapp", "--bind", "[::]:8000", "-w", "4"]
|