From 0f902cf9b4fd5d80a139856336f16ee2a9b0e462 Mon Sep 17 00:00:00 2001 From: Albert Bertram Date: Thu, 25 Apr 2024 11:44:57 -0400 Subject: [PATCH] Try installing with -r --- py/Dockerfile | 5 ++++- py/requirements.txt | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 py/requirements.txt diff --git a/py/Dockerfile b/py/Dockerfile index 7a99767b..6d6bcfd1 100644 --- a/py/Dockerfile +++ b/py/Dockerfile @@ -3,7 +3,6 @@ FROM python:3.13.0a6 RUN apt-get update && \ apt-get install -yqq --no-install-recommends \ cargo && \ - pip install -U sentence-transformers \ rm -rf \ /var/lib/apt/lists/* \ /usr/share/doc \ @@ -14,4 +13,8 @@ RUN mkdir -p /app WORKDIR /app +COPY requirements.txt . + +RUN pip3 install -r requirements.txt + CMD tail -f /dev/null diff --git a/py/requirements.txt b/py/requirements.txt new file mode 100644 index 00000000..9aa7e4c8 --- /dev/null +++ b/py/requirements.txt @@ -0,0 +1,18 @@ +openai +python-dotenv +wikipedia +tiktoken +neo4j +streamlit +sentence_transformers==2.2.2 +Pillow +fastapi +PyPDF2 +torch==2.0.1 +pydantic +uvicorn +sse-starlette +boto3 +# missing from the langchain base image? +langchain-openai +langchain-community