From 3aff45bc2c94fc6e2d17819e9623cf963d2ee531 Mon Sep 17 00:00:00 2001 From: Loris Date: Fri, 7 Mar 2025 17:25:16 +0100 Subject: [PATCH] use python 3.13-alpine base image --- Dockerfile | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a4d39591..097dd8d3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -FROM alpine:3.20 -ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"] +FROM python:3.13-alpine EXPOSE 8080 VOLUME /etc/searxng @@ -21,32 +20,13 @@ ENV INSTANCE_NAME=searxng \ WORKDIR /usr/local/searxng +RUN apk add brotli tini openssl && rm -rf /root/.cache + COPY requirements.txt ./requirements.txt -RUN apk add --no-cache -t build-dependencies \ - build-base \ - py3-setuptools \ - python3-dev \ - libffi-dev \ - libxslt-dev \ - libxml2-dev \ - openssl-dev \ - tar \ - git \ - && apk add --no-cache \ - ca-certificates \ - python3 \ - py3-pip \ - libxml2 \ - libxslt \ - openssl \ - tini \ - uwsgi \ - uwsgi-python3 \ - brotli \ - && pip3 install --break-system-packages --no-cache -r requirements.txt \ - && apk del build-dependencies \ - && rm -rf /root/.cache +RUN apk add --no-cache -t build-dependencies gcc libc-dev linux-headers && pip install --no-cache -r requirements.txt \ +&& apk del build-dependencies \ +&& rm -rf /root/.cache COPY --chown=searxng:searxng dockerfiles ./dockerfiles COPY --chown=searxng:searxng searx ./searx @@ -87,3 +67,5 @@ LABEL maintainer="searxng <${GIT_URL}>" \ org.opencontainers.image.source=${LABEL_VCS_URL} \ org.opencontainers.image.created="${LABEL_DATE}" \ org.opencontainers.image.documentation="https://github.com/searxng/searxng-docker" + +ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]