File size: 355 Bytes
f74cd06
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4e4a737
4da4499
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Builder stage
FROM ubuntu:latest

RUN apt update &&  apt install curl -y

RUN curl curl -fsSL https://ollama.com/install.sh | sh

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

# Command to run the application
CMD ollama serve & ollama pull mistral

# Expose the server port
EXPOSE 7860

EXPOSE 7860