ollama_mcp_gradio / Dockerfile
csepartha's picture
Upload 6 files
f14b058 verified
raw
history blame
455 Bytes
FROM ubuntu:22.04
# System deps
RUN apt-get update && apt-get install -y curl sqlite3 python3 python3-pip
# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
# Copy python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . .
# Non-root user (recommended for Hugging Face Spaces)
RUN useradd -ms /bin/bash user && chown -R user:user ./
USER user
EXPOSE 7860
CMD ["./demo.launcher"]