mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
o
This commit is contained in:
parent
0608814a37
commit
91336c73c2
3 changed files with 9 additions and 36 deletions
39
Dockerfile
39
Dockerfile
|
@ -1,12 +1,5 @@
|
|||
FROM python:3.11-slim-bullseye as builder
|
||||
|
||||
# Tiktoken requires Rust toolchain, so build it in a separate stage
|
||||
RUN apt-get update && apt-get install -y gcc curl gfortran
|
||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && apt-get install --reinstall libc6-dev -y
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
RUN pip install --upgrade pip && pip install tiktoken scipy numpy
|
||||
|
||||
FROM python:3.11-alpine
|
||||
ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]
|
||||
EXPOSE 8080
|
||||
VOLUME /etc/searxng
|
||||
|
@ -26,40 +19,14 @@ ENV INSTANCE_NAME=searxng \
|
|||
GPTKEY= \
|
||||
GPTORG= \
|
||||
SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml \
|
||||
UWSGI_SETTINGS_PATH=/etc/searxng/uwsgi.ini
|
||||
UWSGI_SETTINGS_PATH=/etc/searxng/uwsgi.ini \
|
||||
PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
WORKDIR /usr/local/searxng
|
||||
|
||||
COPY requirements.txt ./requirements.txt
|
||||
|
||||
COPY --from=builder /usr/local/lib/python3.11/site-packages/ /usr/local/lib/python3.11/site-packages/
|
||||
|
||||
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 \
|
||||
su-exec \
|
||||
python3 \
|
||||
py3-pip \
|
||||
libxml2 \
|
||||
libxslt \
|
||||
openssl \
|
||||
tini \
|
||||
uwsgi \
|
||||
uwsgi-python3 \
|
||||
brotli \
|
||||
py3-scipy \
|
||||
py3-numpy \
|
||||
&& pip3 install --no-cache -r requirements.txt \
|
||||
&& apk del build-dependencies \
|
||||
RUN apt-get update && apt-get install -y gcc curl && curl https://sh.rustup.rs -sSf | sh -s -- -y && apt-get install --reinstall libc6-dev -y && pip3 install --no-cache -r requirements.txt \
|
||||
&& rm -rf /root/.cache
|
||||
|
||||
COPY --chown=searxng:searxng dockerfiles ./dockerfiles
|
||||
|
|
|
@ -22,4 +22,7 @@ wlc==1.13
|
|||
coloredlogs==15.0.1
|
||||
requests
|
||||
markdown
|
||||
tiktoken
|
||||
scipy
|
||||
numpy
|
||||
git+https://github.com/luxtiasco/TextRank4ZH.git
|
|
@ -18,4 +18,7 @@ typing_extensions==4.5.0
|
|||
fasttext-predict==0.9.2.1
|
||||
requests
|
||||
markdown
|
||||
tiktoken
|
||||
scipy
|
||||
numpy
|
||||
git+https://github.com/luxtiasco/TextRank4ZH.git
|
Loading…
Add table
Reference in a new issue