Yaya86 commited on
Commit
f74cd06
·
verified ·
1 Parent(s): 7cb10ff

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -1
Dockerfile CHANGED
@@ -1,3 +1,17 @@
1
- docker pull ollama/ollama
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  EXPOSE 7860
 
1
+ # Builder stage
2
+ FROM ubuntu:latest
3
+
4
+ RUN apt update && apt install curl -y
5
+
6
+ RUN curl curl -fsSL https://ollama.com/install.sh | sh
7
+
8
+ # Create the directory and give appropriate permissions
9
+ RUN mkdir -p /.ollama && chmod 777 /.ollama
10
+
11
+ # Command to run the application
12
+ CMD ollama serve & ollama pull mistral
13
+
14
+ # Expose the server port
15
+ EXPOSE 7860
16
 
17
  EXPOSE 7860