Gogs 3 mesi fa
parent
commit
ee57405537
3 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 3 2
      Dockerfile
  2. 0 0
      compose.yaml.bbak
  3. 1 3
      pyproject.toml

+ 3 - 2
Dockerfile

@@ -2,8 +2,8 @@ FROM python:3.12-slim AS builder
 
 # 修改APT源为传入的镜像
 
-RUN apt-get update && apt-get install -y gnupg2
-RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3B4FE6ACC0B21F32 871920D1991BC93C
+#RUN apt-get update && apt-get install -y gnupg2
+#RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3B4FE6ACC0B21F32 871920D1991BC93C
 # Install system dependencies
 RUN apt-get update && apt-get install -y --no-install-recommends \
     gcc g++ musl-dev curl libffi-dev gfortran libopenblas-dev \
@@ -12,6 +12,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
 
 RUN pip install --no-cache-dir poetry -i https://pypi.tuna.tsinghua.edu.cn/simple
 
+RUN poetry init
 
 # Add Rust to PATH
 ENV PATH="/root/.cargo/bin:${PATH}"

+ 0 - 0
compose.yaml → compose.yaml.bbak


+ 1 - 3
pyproject.toml

@@ -52,7 +52,6 @@ unstructured-client = "0.25.5"
 psycopg-binary = "^3.2.3"
 aiosmtplib = "^3.0.2"
 types-aiofiles = "^24.1.0.20240626"
-rich = "^13.9.4"
 aiohttp = "^3.10.10"
 typing-extensions = "^4.12.2"
 
@@ -82,11 +81,9 @@ sendgrid = { version = "^6.11.0", optional = true }
 sqlalchemy = { version = "^2.0.30", optional = true }
 supabase = { version = "^2.7.4", optional = true }
 tokenizers = { version = "0.19", optional = true }
-unstructured-client = { version = "0.25.5", optional = true }
 uvicorn = { version = "^0.27.0.post1", optional = true }
 vecs = { version = "^0.4.0", optional = true }
 
-
 # R2R Ingestion
 aiofiles = { version = "^24.1.0", optional = true }
 aioshutil = { version = "^1.5", optional = true }
@@ -224,3 +221,4 @@ filterwarnings = [
     "ignore::DeprecationWarning",
     "ignore::pytest.PytestUnraisableExceptionWarning",
 ]
+