File size: 488 Bytes
f74cd06
 
 
 
 
c16fda7
f74cd06
e224688
 
 
ef9ad6a
37155a4
f74cd06
 
 
37155a4
0299558
f74cd06
4c415ca
fa46941
f74cd06
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Builder stage
FROM ubuntu:latest

RUN apt update &&  apt install curl -y

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

ENV OLLAMA_HOST=0.0.0.0

RUN useradd -m appuser && chown -R appuser:appuser /home/appuser
RUN ollama
RUN ollama pull mixtral && ollama pull nomic-embed-text
# Create the directory and give appropriate permissions
RUN mkdir -p /.ollama && chmod 777 /.ollama

CMD ollama serve
USER appuser
# Command to run the application



# Expose the server port
EXPOSE 7860