This commit is contained in:
Joseph Cheung 2023-02-28 22:35:57 +08:00
parent 61f9fba64a
commit 0608814a37
4 changed files with 3 additions and 5 deletions

View file

@ -49,7 +49,7 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
platforms: linux/amd64 platforms: linux/amd64, linux/arm64
push: true push: true
tags: ${{ steps.string.outputs.lowercase }} tags: ${{ steps.string.outputs.lowercase }}
cache-from: type=local,src=/tmp/.buildx-cache cache-from: type=local,src=/tmp/.buildx-cache

View file

@ -1,10 +1,10 @@
FROM python:3.11-slim-bullseye as builder FROM python:3.11-slim-bullseye as builder
# Tiktoken requires Rust toolchain, so build it in a separate stage # Tiktoken requires Rust toolchain, so build it in a separate stage
RUN apt-get update && apt-get install -y gcc curl 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 RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && apt-get install --reinstall libc6-dev -y
ENV PATH="/root/.cargo/bin:${PATH}" ENV PATH="/root/.cargo/bin:${PATH}"
RUN pip install --upgrade pip && pip install tiktoken RUN pip install --upgrade pip && pip install tiktoken scipy numpy
FROM python:3.11-alpine 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"]

View file

@ -22,5 +22,4 @@ wlc==1.13
coloredlogs==15.0.1 coloredlogs==15.0.1
requests requests
markdown markdown
scipy
git+https://github.com/luxtiasco/TextRank4ZH.git git+https://github.com/luxtiasco/TextRank4ZH.git

View file

@ -18,5 +18,4 @@ typing_extensions==4.5.0
fasttext-predict==0.9.2.1 fasttext-predict==0.9.2.1
requests requests
markdown markdown
scipy
git+https://github.com/luxtiasco/TextRank4ZH.git git+https://github.com/luxtiasco/TextRank4ZH.git