subhrajit-mohanty commited on
Commit
19404d2
·
verified ·
1 Parent(s): 93cc0b9

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Ollama image as the base
2
+ FROM ollama/ollama:latest
3
+
4
+ # Set environment variables (if needed)
5
+ # ENV OLLAMA_API_BASE_URL=http://0.0.0.0:$SPACE_HOST/api
6
+ ENV OLLAMA_HOST=0.0.0.0:$SPACE_HOST
7
+
8
+ # Expose the port
9
+ EXPOSE $SPACE_HOST
10
+
11
+ # Run Ollama server and pull the model
12
+ CMD ["sh", "-c", "ollama serve & sleep 5 && ollama pull steamdj/llama3.1-cpu-only"]