Skip to content

Commit 2cdcf41

Browse files
commit111jordanstephens
authored andcommitted
add cache var to dockerfile
1 parent 0cee25c commit 2cdcf41

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)