Skip to content

Commit

Permalink
fix(dspy): fix dependancies (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking authored Mar 2, 2025
1 parent bfc0ce0 commit a45722f
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 135 deletions.
1 change: 1 addition & 0 deletions python/examples/dspy-rag-fastapi/backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.2.0"
description = "FastAPI wrapper around dspy"
authors = ["diicell", "mikeldking"]
license = "MIT"
package-mode = false

[tool.poetry.dependencies]
python = ">=3.10, <3.11"
Expand Down
5 changes: 3 additions & 2 deletions python/examples/dspy-rag-fastapi/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Python runtime as a parent image
FROM python:3.10-slim
FROM python:3.12-slim

# Install gcc
RUN apt-get update -y \
Expand All @@ -15,6 +15,7 @@ RUN pip install poetry

# Copy the pyproject.toml (and possibly poetry.lock) file to the container
COPY pyproject.toml /front/
COPY poetry.lock /front/

# Install dependencies via poetry
RUN poetry config virtualenvs.create false \
Expand All @@ -25,4 +26,4 @@ COPY . /front/

EXPOSE 8501

CMD ["streamlit", "run", "about.py", "--server.port=8501", "--server.address=0.0.0.0"]
CMD ["streamlit", "run", "about.py", "--server.port=8501", "--server.address=0.0.0.0"]
Loading

0 comments on commit a45722f

Please # to comment.