Spaces:
Running
Running
File size: 368 Bytes
b39dfff 75abdd8 b39dfff b1628ed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
ENV SENTENCE_TRANSFORMERS_HOME=/app/cache/
RUN python -c "from langchain_huggingface import HuggingFaceEmbeddings; HuggingFaceEmbeddings(model_name='all-MiniLM-L6-v2')"
COPY . .
RUN chmod -R 777 /app/data
EXPOSE 8501
CMD ["streamlit", "run", "app.py"] |