Ollama / Dockerfile
PyxiLabs's picture
Update Dockerfile
b0dee4e verified
raw
history blame
372 Bytes
FROM ollama/ollama:latest
WORKDIR /app
# Install Ollama
RUN curl https://ollama.ai/install.sh | sh
# Create the directory and give appropriate permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama
# Ensure Ollama binary is in the PATH
ENV PATH="/app/venv/bin:/root/.ollama/bin:$PATH"
COPY ollama.sh /app
RUN chmod +x /ollama.sh
EXPOSE 11434
ENTRYPOINT ["/ollama"]