ollama / Dockerfile
akborana4's picture
Update Dockerfile
4b44689 verified
Raw
History Blame Contribute Delete
543 Bytes
FROM python:3.10-slim
# Install system utilities
# ADDED 'zstd' here - it is required for Ollama installation
RUN apt-get update && apt-get install -y \
curl \
gcc \
python3-dev \
zstd \
&& rm -rf /var/lib/apt/lists/*
# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# create a directory for persistent memory
RUN mkdir -p /app/data
EXPOSE 7860
CMD ["bash", "start.sh"]