BinaryONe commited on
Commit
46c9e6f
·
1 Parent(s): 327e4b4

Using Ollama Docker

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -13
Dockerfile CHANGED
@@ -1,17 +1,9 @@
1
- FROM ubuntu:latest
2
 
3
- RUN apt-get update && apt-get install -y curl
4
-
5
- RUN curl https://ollama.ai/install.sh | sh
6
-
7
- WORKDIR /.ollama
8
 
9
- COPY entrypoint.sh /entrypoint.sh
10
- RUN chmod +x /entrypoint.sh
11
 
12
- ENTRYPOINT ["/entrypoint.sh"]
13
  CMD ["ollama", "serve"]
14
-
15
- ENV model=deepseek-r1:1.5b
16
-
17
- EXPOSE 7860
 
1
+ FROM ollama/ollama:latest
2
 
3
+ # Expose desired port
4
+ EXPOSE 7860
 
 
 
5
 
6
+ # Bind to all interfaces on port 7860
7
+ ENV OLLAMA_HOST=0.0.0.0:7860
8
 
 
9
  CMD ["ollama", "serve"]