cx-bot / Dockerfile
rnyx's picture
Fix PYTHONPATH for config module
bc78533
Raw
History Blame Contribute Delete
412 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY . .
RUN apt-get update && apt-get install -y curl zstd && rm -rf /var/lib/apt/lists/*
RUN pip install -r requirements.txt
RUN curl -fsSL https://ollama.com/install.sh | sh
EXPOSE 7860
CMD ollama serve & sleep 10 && ollama pull llama3.2 && cd /app && PYTHONPATH=/app python rag/indexer.py --domain all && PYTHONPATH=/app uvicorn api.main:app --host 0.0.0.0 --port 7860