File size: 375 Bytes
360362a
 
8af09d7
360362a
8af09d7
360362a
8af09d7
360362a
 
8af09d7
360362a
8af09d7
360362a
 
8af09d7
360362a
 
0fb8e0d
360362a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Builder stage
FROM ubuntu:latest

RUN apt update &&  apt install curl -y

RUN curl https://ollama.ai/install.sh | sh

# Create the directory and give appropriate permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama

WORKDIR /.ollama

# Command to run the application
CMD ollama serve 

# Command to pull model
CMD ollama pull llama2

# Expose the server port
EXPOSE 7860