From 9f77f0ef1e9e38731f62dae5014de2539aaaa663 Mon Sep 17 00:00:00 2001 From: Loris Date: Wed, 12 Mar 2025 19:39:51 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index e202a990e..8e2a9b1ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,6 @@ RUN addgroup -g ${SEARXNG_GID} searxng && \ ENV INSTANCE_NAME=searxng \ AUTOCOMPLETE= \ BASE_URL= \ - MORTY_KEY= \ - MORTY_URL= \ SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml \ UWSGI_SETTINGS_PATH=/etc/searxng/uwsgi.ini \ UWSGI_WORKERS=%k \ @@ -23,15 +21,14 @@ WORKDIR /usr/local/searxng # install necessary runtime packages RUN apk add --no-cache brotli tini openssl mailcap libxml2 libxslt pcre && rm -rf /root/.cache -# build and install uwsgi -RUN apk add --no-cache -t build-dependencies gcc libc-dev linux-headers pcre-dev && pip install --no-cache "uwsgi~=2.0.0" \ +COPY requirements.txt ./requirements.txt + +# build and install uwsgi and necessary python packages +RUN apk add --no-cache -t build-dependencies build-base pcre-dev && pip install --no-cache "uwsgi~=2.0.0" \ +&& pip install --no-cache -r requirements.txt \ && apk del build-dependencies \ && rm -rf /root/.cache -# install necessary python packages -COPY requirements.txt ./requirements.txt -RUN pip install --no-cache -r requirements.txt - COPY --chown=searxng:searxng dockerfiles ./dockerfiles COPY --chown=searxng:searxng searx ./searx