FROM ghcr.io/danny-avila/librechat-rag-api-dev:latest | |
ENV DB_PORT=5432 | |
ENV EMBEDDINGS_PROVIDER=huggingface | |
ENV VECTOR_DB_TYPE=pgvector | |
RUN apt-get update \ | |
&& apt-get install -y pandoc netcat-openbsd \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN curl -o ./requirements.txt https://raw.githubusercontent.com/danny-avila/rag_api/main/requirements.txt | |
RUN mkdir -p /.cache | |
RUN chmod -R 777 /.cache | |
RUN chmod -R 777 ./ | |
RUN pip install --no-cache-dir -r requirements.txt | |
CMD ["python", "main.py"] |