use python 3.13-alpine base image
This commit is contained in:
parent
9af1d55b1b
commit
3aff45bc2c
30
Dockerfile
30
Dockerfile
@ -1,5 +1,4 @@
|
|||||||
FROM alpine:3.20
|
FROM python:3.13-alpine
|
||||||
ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
VOLUME /etc/searxng
|
VOLUME /etc/searxng
|
||||||
|
|
||||||
@ -21,30 +20,11 @@ ENV INSTANCE_NAME=searxng \
|
|||||||
|
|
||||||
WORKDIR /usr/local/searxng
|
WORKDIR /usr/local/searxng
|
||||||
|
|
||||||
|
RUN apk add brotli tini openssl && rm -rf /root/.cache
|
||||||
|
|
||||||
COPY requirements.txt ./requirements.txt
|
COPY requirements.txt ./requirements.txt
|
||||||
|
|
||||||
RUN apk add --no-cache -t build-dependencies \
|
RUN apk add --no-cache -t build-dependencies gcc libc-dev linux-headers && pip install --no-cache -r requirements.txt \
|
||||||
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 \
|
&& apk del build-dependencies \
|
||||||
&& rm -rf /root/.cache
|
&& rm -rf /root/.cache
|
||||||
|
|
||||||
@ -87,3 +67,5 @@ LABEL maintainer="searxng <${GIT_URL}>" \
|
|||||||
org.opencontainers.image.source=${LABEL_VCS_URL} \
|
org.opencontainers.image.source=${LABEL_VCS_URL} \
|
||||||
org.opencontainers.image.created="${LABEL_DATE}" \
|
org.opencontainers.image.created="${LABEL_DATE}" \
|
||||||
org.opencontainers.image.documentation="https://github.com/searxng/searxng-docker"
|
org.opencontainers.image.documentation="https://github.com/searxng/searxng-docker"
|
||||||
|
|
||||||
|
ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user