Merge branch 'patch-1' into 'master'

Updating dockerfile with pip3 install command instead of pip which was calling pip2.7 (deprecated).

See merge request cloudron/searx-app!1
This commit is contained in:
Girish Ramakrishnan 2020-03-04 20:11:07 +00:00
commit c3b2545c04
2 changed files with 3 additions and 3 deletions

View file

@ -6,11 +6,11 @@ RUN mkdir -p /app/code /app/pkg
WORKDIR /app/code WORKDIR /app/code
RUN apt update && \ RUN apt update && \
apt install -y python build-essential libxslt-dev python-dev python-virtualenv zlib1g-dev libffi-dev libssl-dev python-pip && \ apt install -y python3 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 rm -rf /var/cache/apt /var/lib/apt/lists
RUN curl -L https://github.com/asciimoo/searx/archive/${VERSION}.tar.gz | tar -xz --strip-components 1 -f - RUN curl -L https://github.com/asciimoo/searx/archive/${VERSION}.tar.gz | tar -xz --strip-components 1 -f -
RUN pip install --no-cache -r /app/code/requirements.txt RUN pip3 install --no-cache -r /app/code/requirements.txt
RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig && \ RUN mv /app/code/searx/settings.yml /app/code/searx/settings.yml.orig && \
ln -sf /app/data/settings.yml /app/code/searx/settings.yml ln -sf /app/data/settings.yml /app/code/searx/settings.yml

View file

@ -13,4 +13,4 @@ fi
chown -R www-data.www-data /app/data chown -R www-data.www-data /app/data
echo "==> Starting searx" echo "==> Starting searx"
exec gosu www-data python /app/code/searx/webapp.py exec gosu www-data python3 /app/code/searx/webapp.py