dockerfiles/searx/Dockerfile

41 lines
993 B
Docker
Raw Normal View History

2017-01-18 04:14:55 +01:00
FROM alpine:edge
2016-04-11 15:59:32 +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
RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
2016-06-03 18:59:45 +02:00
&& BUILD_DEPS=" \
2016-04-11 15:59:32 +02:00
build-base \
python-dev \
libffi-dev \
2016-06-03 18:59:45 +02:00
libxslt-dev \
libxml2-dev \
2016-04-11 15:59:32 +02:00
openssl-dev \
tar \
2016-06-03 18:59:45 +02:00
ca-certificates" \
&& apk -U add \
${BUILD_DEPS} \
2016-09-16 17:08:06 +02:00
su-exec \
2016-06-03 18:59:45 +02:00
python \
libxml2 \
libxslt \
openssl \
2016-04-11 15:59:32 +02:00
tini@commuedge \
2017-02-22 13:40:08 +01:00
py2-pip \
2016-04-11 15:59:32 +02:00
&& pip install --no-cache -r https://raw.githubusercontent.com/asciimoo/searx/master/requirements.txt \
2016-06-03 18:59:45 +02:00
&& mkdir /usr/local/searx && cd /usr/local/searx \
&& wget -qO- https://github.com/asciimoo/searx/archive/master.tar.gz | tar xz --strip 1 \
&& sed -i "s/127.0.0.1/0.0.0.0/g" searx/settings.yml \
&& apk del ${BUILD_DEPS} \
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-01-19 02:31:59 +01:00
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>"
2016-09-16 17:08:06 +02:00
CMD ["run.sh"]