netero89 commited on
Commit
d4eb21a
·
verified ·
1 Parent(s): 7f8fbaf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Builder stage
2
+ FROM ubuntu:latest
3
+
4
+ RUN apt update && apt install curl -y
5
+
6
+ RUN curl https://ollama.ai/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
13
+
14
+ # Expose the server port
15
+ EXPOSE 7860