Ollama / Dockerfile
PyxiLabs's picture
Update Dockerfile
f70938a verified
raw
history blame
402 Bytes
FROM python:3.10-slim-buster
WORKDIR /app
COPY requirements.txt ollama.sh ollama.py ./
RUN apt-get update && apt-get install -y curl netcat && \
curl https://ollama.ai/install.sh | sh && \
pip install --no-cache-dir -r requirements.txt && \
chmod +x ollama.sh
RUN mkdir -p /.ollama && chmod 777 /.ollama
ENV PATH="/usr/local/bin:$PATH"
EXPOSE 7860 11434
ENTRYPOINT ["/app/ollama.sh"]