PyxiLabs commited on
Commit
b0dee4e
·
verified ·
1 Parent(s): 571cd01

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -2,11 +2,18 @@ FROM ollama/ollama:latest
2
 
3
  WORKDIR /app
4
 
 
 
 
 
5
  RUN mkdir -p /.ollama && chmod 777 /.ollama
6
 
7
- COPY pull-model.sh /app
8
- RUN chmod +x /app && ./pull-model.sh
 
 
 
9
 
10
  EXPOSE 11434
11
 
12
- CMD ["ollama", "serve"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install Ollama
6
+ RUN curl https://ollama.ai/install.sh | sh
7
+
8
+ # Create the directory and give appropriate permissions
9
  RUN mkdir -p /.ollama && chmod 777 /.ollama
10
 
11
+ # Ensure Ollama binary is in the PATH
12
+ ENV PATH="/app/venv/bin:/root/.ollama/bin:$PATH"
13
+
14
+ COPY ollama.sh /app
15
+ RUN chmod +x /ollama.sh
16
 
17
  EXPOSE 11434
18
 
19
+ ENTRYPOINT ["/ollama"]