Rohan Kataria commited on
Commit
8af09d7
1 Parent(s): 0cf8897

adding dockerfile

Browse files
.history/Dockerfile_20240309010324 ADDED
File without changes
.history/Dockerfile_20240309010353 ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ WORKDIR /.ollama
12
+
13
+ # Command to run the application
14
+ CMD ollama serve
15
+
16
+ # Expose the server port
17
+ EXPOSE 7860
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ WORKDIR /.ollama
12
+
13
+ # Command to run the application
14
+ CMD ollama serve
15
+
16
+ # Expose the server port
17
+ EXPOSE 7860