Skip to content

Commit

Permalink
fix: initialize ChromaDB collection in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
amanovishnu committed Dec 29, 2024
1 parent cf3f999 commit 03fd5a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
ENV USER_AGENT="outreach-composer-for-job-search"
RUN python -c "import chromadb; chromadb.Client().get_or_create_collection('my_collection')._embed('sample text')"
COPY . .
EXPOSE 8501
CMD ["streamlit", "run", "app.py"]

0 comments on commit 03fd5a4

Please sign in to comment.