mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
o
This commit is contained in:
parent
e5011c0cab
commit
37fe056ccd
3 changed files with 14 additions and 3 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,4 +1,12 @@
|
||||||
FROM python:3.10-alpine
|
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
|
||||||
|
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
|
||||||
|
|
||||||
|
FROM python:3.11-alpine
|
||||||
ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]
|
ENTRYPOINT ["/sbin/tini","--","/usr/local/searxng/dockerfiles/docker-entrypoint.sh"]
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
VOLUME /etc/searxng
|
VOLUME /etc/searxng
|
||||||
|
@ -6,6 +14,7 @@ VOLUME /etc/searxng
|
||||||
ARG SEARXNG_GID=977
|
ARG SEARXNG_GID=977
|
||||||
ARG SEARXNG_UID=977
|
ARG SEARXNG_UID=977
|
||||||
|
|
||||||
|
|
||||||
RUN addgroup -g ${SEARXNG_GID} searxng && \
|
RUN addgroup -g ${SEARXNG_GID} searxng && \
|
||||||
adduser -u ${SEARXNG_UID} -D -h /usr/local/searxng -s /bin/sh -G searxng searxng
|
adduser -u ${SEARXNG_UID} -D -h /usr/local/searxng -s /bin/sh -G searxng searxng
|
||||||
|
|
||||||
|
@ -23,6 +32,8 @@ WORKDIR /usr/local/searxng
|
||||||
|
|
||||||
COPY requirements.txt ./requirements.txt
|
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 \
|
RUN apk add --no-cache -t build-dependencies \
|
||||||
build-base \
|
build-base \
|
||||||
py3-setuptools \
|
py3-setuptools \
|
||||||
|
|
|
@ -22,5 +22,5 @@ wlc==1.13
|
||||||
coloredlogs==15.0.1
|
coloredlogs==15.0.1
|
||||||
requests
|
requests
|
||||||
markdown
|
markdown
|
||||||
tiktoken
|
scipy
|
||||||
git+https://github.com/luxtiasco/TextRank4ZH.git
|
git+https://github.com/luxtiasco/TextRank4ZH.git
|
|
@ -18,5 +18,5 @@ typing_extensions==4.5.0
|
||||||
fasttext-predict==0.9.2.1
|
fasttext-predict==0.9.2.1
|
||||||
requests
|
requests
|
||||||
markdown
|
markdown
|
||||||
tiktoken
|
scipy
|
||||||
git+https://github.com/luxtiasco/TextRank4ZH.git
|
git+https://github.com/luxtiasco/TextRank4ZH.git
|
Loading…
Add table
Reference in a new issue