File size: 356 Bytes
0b7076c
 
61bb2ed
0b7076c
c2ff9f3
 
0b7076c
c2ff9f3
61bb2ed
97ee399
61bb2ed
c2ff9f3
 
 
61bb2ed
 
0b7076c
f6121e6
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ollama/ollama:latest

RUN useradd -m -u 1000 user

# Switch to the "user" user
USER user

# Set home to the user's home directory
ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH \
    OLLAMA_HOST=0.0.0.0:7860

# Set the working directory to the user's home directory
WORKDIR $HOME/app
    
EXPOSE 7860

ENTRYPOINT ["/bin/ollama"]
CMD ["serve"]