commit: 8329ad521419119f89e3e2577269475190cfe921
parent dd48810186e3b4ee14e1d3727f37bd470d0711a4
Author: Lain Soykaf <lain@lain.com>
Date: Sun, 19 May 2024 12:59:03 +0400
B FastembedAPI: Add requirements.txt
Diffstat:
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/supplemental/search/fastembed-api/Dockerfile b/supplemental/search/fastembed-api/Dockerfile
@@ -2,7 +2,8 @@ FROM python:3.9
WORKDIR /code
COPY fastembed-server.py /workdir/fastembed-server.py
+COPY requirements.txt /workdir/requirements.txt
-RUN pip install --no-cache-dir --upgrade fastembed fastapi uvicorn
+RUN pip install -r /workdir/requirements.txt
CMD ["python", "/workdir/fastembed-server.py"]
diff --git a/supplemental/search/fastembed-api/requirements.txt b/supplemental/search/fastembed-api/requirements.txt
@@ -0,0 +1,4 @@
+fastapi==0.111.0
+fastembed==0.2.7
+pydantic==1.10.15
+uvicorn==0.29.0