Subham9126 commited on
Commit
070df7c
·
verified ·
1 Parent(s): d2895a2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -3,22 +3,21 @@ FROM ubuntu:22.04
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV OLLAMA_HOST=0.0.0.0:7860
5
 
6
- # Install required packages
7
  RUN apt-get update && \
8
- apt-get install -y curl ca-certificates && \
9
  rm -rf /var/lib/apt/lists/*
10
 
11
- # Install Ollama (official method)
12
  RUN curl -fsSL https://ollama.com/install.sh | sh
13
 
14
- # Expose HF Spaces required port
15
  EXPOSE 7860
16
 
17
- # Start Ollama server, wait for readiness, pull model, keep alive
18
  CMD bash -c "\
19
  ollama serve & \
20
  until curl -s http://localhost:7860 > /dev/null; do \
21
  sleep 1; \
22
  done; \
23
  ollama pull qwen3.5:0.8b; \
24
- wait"
 
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV OLLAMA_HOST=0.0.0.0:7860
5
 
6
+ # Install dependencies (including zstd — the missing piece)
7
  RUN apt-get update && \
8
+ apt-get install -y curl ca-certificates zstd && \
9
  rm -rf /var/lib/apt/lists/*
10
 
11
+ # Install Ollama (official script)
12
  RUN curl -fsSL https://ollama.com/install.sh | sh
13
 
 
14
  EXPOSE 7860
15
 
 
16
  CMD bash -c "\
17
  ollama serve & \
18
  until curl -s http://localhost:7860 > /dev/null; do \
19
  sleep 1; \
20
  done; \
21
  ollama pull qwen3.5:0.8b; \
22
+ wait"
23
+