Skip to content

Commit 6ed7aa0

Browse files
authored
Merge pull request #84 from dpomian/fix-docker-image
fix: Add missing python deps to the docker image
2 parents f9f3137 + fd59441 commit 6ed7aa0

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
@@ -16,6 +16,8 @@ dependencies = [
1616
"beautifulsoup4>=4.12",
1717
"cerberus>=1.3.7",
1818
"chromadb>=0.6.3",
19+
"fastembed>=0.4.0",
20+
"fastapi>=0.115.0",
1921
"jira>=3.8.0",
2022
"langchain>=0.3.19",
2123
"langchain-community>=0.3.18",
@@ -36,6 +38,7 @@ dependencies = [
3638
"python-dotenv>=1.0.1",
3739
"python-pptx>=1.0.2",
3840
"numba>=0.60.0",
41+
"uvicorn[standard]>=0.32.0",
3942
"unstructured>=0.14.8",
4043
"faiss-cpu>=1.11.0",
4144
"langchain_community>=0.3.18",

0 commit comments

Comments
 (0)