Techbitforge commited on
Commit
e68a49f
·
verified ·
1 Parent(s): 6f24d42

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -1,20 +1,18 @@
1
  FROM ubuntu:22.04
2
 
3
- # Avoid interactive prompts
4
  ENV DEBIAN_FRONTEND=noninteractive
5
 
6
- # Install dependencies
7
  RUN apt-get update && apt-get install -y \
8
  curl \
9
  zstd \
10
  ca-certificates \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Install Ollama
14
  RUN curl -fsSL https://ollama.com/install.sh | sh
15
 
16
- # Expose Ollama API port
 
 
17
  EXPOSE 7860
18
 
19
- # Start Ollama server
20
- CMD "OLLAMA_HOST=127.0.0.1:7860 ollama serve"
 
1
  FROM ubuntu:22.04
2
 
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  curl \
7
  zstd \
8
  ca-certificates \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
11
  RUN curl -fsSL https://ollama.com/install.sh | sh
12
 
13
+ # Bind Ollama to HF port
14
+ ENV OLLAMA_HOST=0.0.0.0:7860
15
+
16
  EXPOSE 7860
17
 
18
+ CMD ["ollama", "serve"]