amoughnieh commited on
Commit
b39dfff
·
verified ·
1 Parent(s): 8d36051

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -11
Dockerfile CHANGED
@@ -1,12 +1,15 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
7
-
8
- COPY . .
9
-
10
- EXPOSE 8501
11
-
 
 
 
12
  CMD ["streamlit", "run", "app.py"]
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ ENV SENTENCE_TRANSFORMERS_HOME=/app/cache/
9
+ RUN python -c "from langchain_huggingface import HuggingFaceEmbeddings; HuggingFaceEmbeddings(model_name='all-MiniLM-L6-v2')"
10
+
11
+ COPY . .
12
+
13
+ EXPOSE 8501
14
+
15
  CMD ["streamlit", "run", "app.py"]