Add searx build for the master branch

This commit is contained in:
hoellen 2019-05-16 13:00:07 +02:00
parent f8b043c016
commit 5973419ae3
3 changed files with 47 additions and 0 deletions

41
searx/Dockerfile.Master Normal file
View File

@ -0,0 +1,41 @@
FROM alpine:3.9
ARG VERSION=master
ENV BASE_URL=False IMAGE_PROXY=False \
UID=991 GID=991
RUN apk -U upgrade \
&& apk add -t build-dependencies \
build-base \
python3-dev \
libffi-dev \
libxslt-dev \
libxml2-dev \
openssl-dev \
git \
ca-certificates \
&& apk add \
su-exec \
python3 \
libxml2 \
libxslt \
openssl \
tini \
&& mkdir /usr/local/searx && cd /usr/local/searx \
&& git clone https://github.com/asciimoo/searx/ . \
&& pip3 install --upgrade setuptools pip \
&& pip3 install --no-cache -r requirements.txt \
&& sed -i "s/127.0.0.1/0.0.0.0/g" searx/settings.yml \
&& apk del build-dependencies \
&& rm -f /var/cache/apk/*
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
EXPOSE 8888
LABEL maintainer="hoellen <info@hoellen.eu>"
CMD ["run.sh"]

View File

@ -12,6 +12,12 @@ It provides basic privacy by mixing your queries with searches on other platform
- Latest code from [asciimoo/searx](https://github.com/asciimoo/searx)
- A unique secret key is generated when booting the first time.
#### Tags
- **latest** : latest stable version (0.15)
- **master** : latest code from master branch
`latest` and `master` are built weekly. For security reasons, you should occasionally update the container, even if you have the latest version of Searx.
#### Build-time variables
- **VERSION** : Searx version