From 0608814a37ef479973ae2d97d8a7ae81f020d419 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Tue, 28 Feb 2023 22:35:57 +0800 Subject: [PATCH] c --- .github/workflows/docker.yml | 2 +- Dockerfile | 4 ++-- requirements-dev.txt | 1 - requirements.txt | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 7258f8ed1..d5a6dcfa8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -49,7 +49,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - platforms: linux/amd64 + platforms: linux/amd64, linux/arm64 push: true tags: ${{ steps.string.outputs.lowercase }} cache-from: type=local,src=/tmp/.buildx-cache diff --git a/Dockerfile b/Dockerfile index 9c96b46c8..c8a3f41eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ 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 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 +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"] diff --git a/requirements-dev.txt b/requirements-dev.txt index 60fc20ac1..e52b0f93f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -22,5 +22,4 @@ wlc==1.13 coloredlogs==15.0.1 requests markdown -scipy git+https://github.com/luxtiasco/TextRank4ZH.git \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 0aafdaa75..d6b4cc226 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,5 +18,4 @@ typing_extensions==4.5.0 fasttext-predict==0.9.2.1 requests markdown -scipy git+https://github.com/luxtiasco/TextRank4ZH.git \ No newline at end of file