arafatDU commited on
Commit
8091355
·
verified ·
1 Parent(s): 6380789

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -13
Dockerfile CHANGED
@@ -1,14 +1,14 @@
1
  FROM ollama/ollama
2
- 2
3
- 3 # Set the host to listen on all interfaces
4
- 4 ENV OLLAMA_HOST=0.0.0.0
5
- 5
6
- 6 # Expose the port
7
- 7 EXPOSE 11434
8
- 8
9
- 9 # Pre-download the model so it's ready immediately
10
- 10 # We start the server briefly in the background to pull the model, then shut it down
11
- 11 RUN ollama serve & sleep 5 && ollama pull llama3.2:1b
12
- 12
13
- 13 # Start Ollama
14
- 14 ENTRYPOINT ["ollama", "serve"]
 
1
  FROM ollama/ollama
2
+
3
+ # Set the host to listen on all interfaces
4
+ ENV OLLAMA_HOST=0.0.0.0
5
+
6
+ # Expose the port
7
+ EXPOSE 11434
8
+
9
+ # Pre-download the model so it's ready immediately
10
+ # We start the server briefly in the background to pull the model, then shut it down
11
+ RUN ollama serve & sleep 5 && ollama pull llama3.2:1b
12
+
13
+ # Start Ollama
14
+ ENTRYPOINT ["ollama", "serve"]