Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
-
|
9 |
-
|
10 |
-
|
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"]
|