PyxiLabs commited on
Commit
bbdd11a
·
verified ·
1 Parent(s): 619ab0e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,14 +1,10 @@
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"]
 
 
1
  FROM ollama/ollama:latest
2
 
3
+ WORKDIR app
 
4
 
5
+ COPY pull-model.sh /app
6
+ RUN chmod +x /pull-model.sh && /pull-model.sh
7
 
 
8
  EXPOSE 11434
9
 
 
10
  CMD ["ollama", "serve"]