From 5973419ae3712c9cb3de9ba8db1657b99a3a9ccb Mon Sep 17 00:00:00 2001 From: hoellen Date: Thu, 16 May 2019 13:00:07 +0200 Subject: [PATCH] Add searx build for the master branch --- searx/{Dockerfile => Dockerfile.0.15} | 0 searx/Dockerfile.Master | 41 +++++++++++++++++++++++++++ searx/README.md | 6 ++++ 3 files changed, 47 insertions(+) rename searx/{Dockerfile => Dockerfile.0.15} (100%) create mode 100644 searx/Dockerfile.Master diff --git a/searx/Dockerfile b/searx/Dockerfile.0.15 similarity index 100% rename from searx/Dockerfile rename to searx/Dockerfile.0.15 diff --git a/searx/Dockerfile.Master b/searx/Dockerfile.Master new file mode 100644 index 0000000..f4eb25a --- /dev/null +++ b/searx/Dockerfile.Master @@ -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 " + +CMD ["run.sh"] diff --git a/searx/README.md b/searx/README.md index 59f4e65..ae70fa6 100644 --- a/searx/README.md +++ b/searx/README.md @@ -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