From 97eacb8b34e9060f04726a7ff40bff9147240cfe Mon Sep 17 00:00:00 2001 From: Loris Date: Sat, 8 Mar 2025 09:42:58 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c91744474..517f768a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,14 +20,18 @@ ENV INSTANCE_NAME=searxng \ WORKDIR /usr/local/searxng -RUN apk add --no-cache brotli tini openssl mailcap && rm -rf /root/.cache +# install necessary runtime packages +RUN apk add --no-cache brotli tini openssl mailcap libxml2 libxslt && rm -rf /root/.cache -COPY requirements.txt ./requirements.txt - -RUN apk add --no-cache -t build-dependencies gcc libc-dev linux-headers && pip install --no-cache -r requirements.txt \ +# build and install uwsgi +RUN apk add --no-cache -t build-dependencies gcc libc-dev linux-headers && pip install --no-cache "uwsgi~=2.0.0" \ && 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