MarneMorgan commited on
Commit
3675117
·
verified ·
1 Parent(s): b7b776f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ollama/ollama:latest
2
+
3
+ # Set Ollama to listen on port 7860 (Hugging Face default)
4
+ ENV OLLAMA_HOST=0.0.0.0:7860
5
+ EXPOSE 7860
6
+
7
+ # Create a script to pull the model on startup
8
+ COPY entrypoint.sh /entrypoint.sh
9
+ RUN chmod +x /entrypoint.sh
10
+
11
+ ENTRYPOINT ["/entrypoint.sh"]