2016-07-11 21:58:43 +02:00
|
|
|
FROM alpine:3.4
|
2016-06-03 18:59:45 +02:00
|
|
|
MAINTAINER Wonderfall <wonderfall@schrodinger.io>
|
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
|
|
|
|
2016-06-30 13:15:04 +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 \
|
|
|
|
py-pip \
|
|
|
|
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 \
|
|
|
|
&& 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
|
|
|
|
2016-09-16 17:08:06 +02:00
|
|
|
CMD ["run.sh"]
|