2019-01-30 09:50:27 +01:00
|
|
|
FROM alpine:3.9
|
2016-04-11 15:59:32 +02:00
|
|
|
|
2019-05-16 13:00:07 +02:00
|
|
|
ARG VERSION=master
|
2017-08-27 18:05:49 +02:00
|
|
|
|
2016-09-16 17:08:06 +02:00
|
|
|
ENV BASE_URL=False IMAGE_PROXY=False \
|
|
|
|
UID=991 GID=991
|
2016-04-11 15:59:32 +02:00
|
|
|
|
2017-05-27 01:46:23 +02:00
|
|
|
RUN apk -U upgrade \
|
|
|
|
&& apk add -t build-dependencies \
|
2016-04-11 15:59:32 +02:00
|
|
|
build-base \
|
2019-02-01 09:25:01 +01:00
|
|
|
python3-dev \
|
2016-04-11 15:59:32 +02:00
|
|
|
libffi-dev \
|
2016-06-03 18:59:45 +02:00
|
|
|
libxslt-dev \
|
|
|
|
libxml2-dev \
|
2016-04-11 15:59:32 +02:00
|
|
|
openssl-dev \
|
2019-05-16 13:00:07 +02:00
|
|
|
git \
|
2017-05-27 01:46:23 +02:00
|
|
|
ca-certificates \
|
|
|
|
&& apk add \
|
2016-09-16 17:08:06 +02:00
|
|
|
su-exec \
|
2019-02-01 09:25:01 +01:00
|
|
|
python3 \
|
2016-06-03 18:59:45 +02:00
|
|
|
libxml2 \
|
|
|
|
libxslt \
|
|
|
|
openssl \
|
2017-05-27 01:46:23 +02:00
|
|
|
tini \
|
2016-06-03 18:59:45 +02:00
|
|
|
&& mkdir /usr/local/searx && cd /usr/local/searx \
|
2019-05-16 13:00:07 +02:00
|
|
|
&& git clone https://github.com/asciimoo/searx/ . \
|
2019-02-09 09:25:08 +01:00
|
|
|
&& pip3 install --upgrade setuptools pip \
|
2019-02-01 09:25:01 +01:00
|
|
|
&& pip3 install --no-cache -r requirements.txt \
|
2016-06-03 18:59:45 +02:00
|
|
|
&& sed -i "s/127.0.0.1/0.0.0.0/g" searx/settings.yml \
|
2017-05-27 01:46:23 +02:00
|
|
|
&& apk del build-dependencies \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& rm -f /var/cache/apk/*
|
|
|
|
|
|
|
|
COPY run.sh /usr/local/bin/run.sh
|
|
|
|
|
|
|
|
RUN chmod +x /usr/local/bin/run.sh
|
|
|
|
|
|
|
|
EXPOSE 8888
|
2016-06-03 18:59:45 +02:00
|
|
|
|
2017-12-05 10:09:15 +01:00
|
|
|
LABEL maintainer="hoellen <info@hoellen.eu>"
|
2017-01-19 02:31:59 +01:00
|
|
|
|
2016-09-16 17:08:06 +02:00
|
|
|
CMD ["run.sh"]
|