Skip to content

Commit fd59441

Browse files
author
Dorin POMIAN
committed
fix: Add missing python deps to the docker image
1 parent d988286 commit fd59441

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ RUN echo "sslverify=0" >> /etc/dnf/dnf.conf \
1717
&& sed -i '/sslverify=0/d' /etc/dnf/dnf.conf \
1818
&& update-ca-trust extract
1919

20+
WORKDIR /app
21+
2022
RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
2123
&& source $HOME/.local/bin/env \
22-
&& uv python install 3.11 \
24+
&& uv --system-certs python install 3.11 \
2325
&& uv venv \
24-
&& cd /tmp/build \
25-
&& uv --native-tls pip install --no-cache --override /tmp/build/etc/uv-overrides.txt . \
26-
&& uv --native-tls run --script /tmp/build/etc/fetchDefaultModels.py \
26+
&& uv --system-certs pip install --no-cache --override /tmp/build/etc/uv-overrides.txt /tmp/build \
27+
&& uv --system-certs run --script /tmp/build/etc/fetchDefaultModels.py \
2728
&& rm -rf /tmp/build
2829

29-
ENTRYPOINT ["/root/.local/bin/uv", "--native-tls", "run", "docs2vecs"]
30+
ENTRYPOINT ["/root/.local/bin/uv", "--system-certs", "run", "docs2vecs"]

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ dependencies = [
1515
"azure-storage-blob>=12.24.1",
1616
"cerberus>=1.3.7",
1717
"chromadb>=0.6.3",
18+
"fastembed>=0.4.0",
19+
"fastapi>=0.115.0",
1820
"jira>=3.8.0",
1921
"langchain>=0.3.19",
2022
"langchain-community>=0.3.18",
@@ -34,6 +36,7 @@ dependencies = [
3436
"python-dotenv>=1.0.1",
3537
"python-pptx>=1.0.2",
3638
"numba>=0.60.0",
39+
"uvicorn[standard]>=0.32.0",
3740
"unstructured>=0.14.8",
3841
"faiss-cpu>=1.11.0",
3942
"langchain_community>=0.3.18",

0 commit comments

Comments
 (0)