PyxiLabs commited on
Commit
c8ff5b2
·
verified ·
1 Parent(s): d07ec72

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Ollama image as the base
2
+ FROM ollama/ollama:latest
3
+
4
+ # Set the model name (using lightweight all-minilm)
5
+ ARG OLLAMA_MODEL="all-minilm"
6
+
7
+ # Pull the model during build
8
+ RUN ollama pull ${OLLAMA_MODEL}
9
+
10
+ # Expose the Ollama API port
11
+ EXPOSE 11434
12
+
13
+ # Start the server directly
14
+ CMD ["ollama", "serve"]