File size: 532 Bytes
566bacc c8ff5b2 b9fefcc 6d00b38 33d74f8 6d00b38 566bacc 6d00b38 6c6c988 6d00b38 b9fefcc c8ff5b2 6d00b38 b0dee4e c8ff5b2 6d00b38 33d74f8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM python:3.10-slim-buster
WORKDIR /app
# Copy script with proper permissions
COPY ollama.sh /app/ollama.sh
RUN chmod +x /app/ollama.sh
# Install system dependencies and Ollama
RUN apt-get update && apt-get install -y curl && \
curl https://ollama.ai/install.sh | sh
# Create directory with correct permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama
# Ensure Ollama is in PATH (standard installation location)
ENV PATH="/usr/local/bin:$PATH"
EXPOSE 11434
# Use absolute path to script
ENTRYPOINT ["/app/ollama.sh"] |