DocChatAI / Dockerfile
Deepak Yadav
updated new version deepseek-r1
e876950
raw
history blame
617 Bytes
# Use an official Python image
FROM python:3.10
# Install dependencies
RUN apt-get update && apt-get install -y curl
# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
# Pull the Ollama model in advance
RUN ollama pull deepseek-r1:1.5b
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app files
COPY . .
# Expose necessary ports
EXPOSE 11434 8501
# Start both Ollama and Streamlit
CMD ["bash", "-c", "ollama serve & sleep 5 && streamlit run app.py --server.port 8501 --server.enableCORS false --server.enableXsrfProtection false"]