Skip to content

Commit 4afe49a

Browse files
authored
Merge pull request #76 from DefangLabs/linda-cache-var-dockerfile
2 parents 0cee25c + 1ae8e0a commit 4afe49a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ COPY requirements.txt /app/
3333
# Install Python dependencies
3434
RUN pip install --no-cache-dir -r requirements.txt
3535

36+
# Set the environment variable for the sentence transformers model
37+
ENV SENTENCE_TRANSFORMERS_HOME="/app/sentence-transformers"
38+
3639
# Preload the sentence transformer model to cache
3740
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
3841

0 commit comments

Comments
 (0)