File size: 402 Bytes
566bacc c8ff5b2 b9fefcc f70938a 566bacc f70938a 6c6c988 b9fefcc c8ff5b2 6d00b38 b0dee4e f70938a c8ff5b2 33d74f8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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"] |