From 773d669e165fbf592305f2c1662d258030759619 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 16 Jul 2019 12:28:51 -0700 Subject: [PATCH] Pin searx to a revision --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3ec3c86..c6ee124 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,11 @@ RUN apt update && \ apt install -y python build-essential libxslt-dev python-dev python-virtualenv zlib1g-dev libffi-dev libssl-dev python-pip && \ rm -rf /var/cache/apt /var/lib/apt/lists -RUN pip install --no-cache -r https://raw.githubusercontent.com/asciimoo/searx/master/requirements.txt -RUN curl -L https://github.com/asciimoo/searx/archive/master.tar.gz | tar -xz --strip-components 1 -f - -RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig -RUN ln -sf /app/data/settings.yml /app/code/searx/settings.yml +RUN curl -L https://github.com/asciimoo/searx/archive/ddee4861cee8d5b08e9219d4e727acc35fc3ca32.tar.gz | tar -xz --strip-components 1 -f - +RUN pip install --no-cache -r /app/code/requirements.txt + +RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig && \ + ln -sf /app/data/settings.yml /app/code/searx/settings.yml RUN chown -R www-data.www-data /app/code