Modrik / Dockerfile
Joriesk's picture
Deploy Modrik RAG assistant
197a96c
Raw History Blame Contribute Delete
463 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt
COPY . .
RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('intfloat/multilingual-e5-large')"
RUN chmod +x entrypoint.sh
ENV HF_HUB_OFFLINE=1
ENV TRANSFORMERS_OFFLINE=1
EXPOSE 8501
ENTRYPOINT ["./entrypoint.sh"]