-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (28 loc) · 857 Bytes
/
Dockerfile
File metadata and controls
38 lines (28 loc) · 857 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
30
31
32
33
34
35
36
37
38
# FROM ollama/ollama
# Use a base image with CUDA support if using GPU, otherwise use Ubuntu
# for drivers 550 or higher
FROM nvidia/cuda:12.8.1-runtime-ubuntu24.04
# For drivers 530
# FROM nvidia/cuda:11.6.2-base-ubuntu20.04
# Set non-interactive mode to avoid prompts during installation
ENV DEBIAN_FRONTEND=noninteractive
# Install required dependencies
RUN apt update && apt install -y \
curl \
git \
wget \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Install Ollama
RUN curl -fsSL https://ollama.com/install.sh | sh
# RUN ollama -v
# Expose Ollama's default port (if needed)
EXPOSE 11434
# Pull Llama 3 model
# RUN ollama pull llama3
# RUN ollama pull deepseek-r1
# Start Ollama service by default
# CMD ["ollama", "serve"]
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh"]