forked from williamcaban/ollama-ubi
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContainerfile
More file actions
29 lines (20 loc) · 725 Bytes
/
Copy pathContainerfile
File metadata and controls
29 lines (20 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#FROM docker.io/nvidia/cuda:12.2.2-runtime-ubi9
FROM docker.io/nvidia/cuda:12.3.2-devel-ubi9
LABEL maintainer=afred@redhat.com \
io.k8s.display-name="Ollama AI" \
summary="ollama.ai - tool for running LLMs locally"
RUN dnf -y update \
&& dnf install -y --nodocs pciutils \
&& dnf clean all && rm -rf /var/cache/*
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
USER root
# Note: Raw model data is stored under /usr/share/ollama/.ollama/models
WORKDIR /usr/share/ollama
RUN curl https://ollama.ai/install.sh | sh
EXPOSE 11434
ENV OLLAMA_HOST 0.0.0.0
#ENV OLLAMA_ORIGINS http://localhost:*,http://0.0.0.0:*
ENV OLLAMA_MODELS /.ollama/models
ENTRYPOINT ["/usr/local/bin/ollama"]
CMD ["serve"]