Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.git
.gitignore
.venv
__pycache__
*.pyc
.pytest_cache
.coverage
.ruff_cache
.github/
README.md
LICENSE
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM python:3.12-slim

WORKDIR /app

# Copy only the pyproject.toml files for dependency installation
COPY app/pyproject.toml ./app/
COPY pyproject.toml ./

# Install dependencies from app/pyproject.toml
RUN pip install --no-cache-dir -e ./app

# Copy the rest of the project
COPY . .

# Expose Streamlit's default port
EXPOSE 8501

# Run the Streamlit app
CMD ["streamlit", "run", "app/main.py"]
8 changes: 4 additions & 4 deletions app/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ description = "A Streamlit-based chatbot application that provides an interactiv
readme = "README.md"
requires-python = ">=3.12, <4.0"
dependencies = [
"llama-index>=0.13.3",
"llama-index-embeddings-google-genai>=0.3.1",
"llama-index-llms-google-genai>=0.3.1",
"streamlit>=1.49.1",
"llama-index==0.14.14",
"llama-index-embeddings-google-genai==0.3.2",
"llama-index-llms-google-genai==0.8.7",
"streamlit==1.54.0",
]

[tool.poetry]
Expand Down
Loading
Loading