Skip to content

Commit

Permalink
feat: faster docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthdash1998 committed Aug 12, 2024
1 parent 8c6123b commit 8975a1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
RUN pip install --no-cache-dir sentence-transformers


# Final stage
FROM python:3.9-slim
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ langchain
langchain_community
faiss-cpu
langchain-groq
sentence_transformers
#sentence_transformers

0 comments on commit 8975a1b

Please sign in to comment.