rahul7star commited on
Commit
2f458cd
·
verified ·
1 Parent(s): 9bc5ac4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -16
Dockerfile CHANGED
@@ -2,11 +2,11 @@ FROM ubuntu:22.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
5
- ENV OLLAMA_HOST=0.0.0.0:11434
6
  ENV MODEL_NAME="hf.co/rahul7star/Qwen3-4B-Thinking-2509-Genius-Coder-AI-Full:Q5_K_M"
 
7
 
8
  # ----------------------------
9
- # System deps
10
  # ----------------------------
11
  RUN apt-get update && apt-get install -y \
12
  build-essential \
@@ -16,10 +16,12 @@ RUN apt-get update && apt-get install -y \
16
  python3-pip \
17
  redis-server \
18
  dos2unix \
 
 
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
  # ----------------------------
22
- # Install Ollama
23
  # ----------------------------
24
  RUN curl -fsSL https://ollama.com/install.sh | sh
25
 
@@ -27,32 +29,23 @@ RUN curl -fsSL https://ollama.com/install.sh | sh
27
  WORKDIR /workspace
28
 
29
  # ----------------------------
30
- # Install Python deps
31
  # ----------------------------
32
  COPY requirements.txt .
33
  RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
34
 
35
  # ----------------------------
36
- # Copy all files
37
  # ----------------------------
38
  COPY . .
39
 
40
  # ----------------------------
41
- # DEBUG (remove later)
42
- # ----------------------------
43
- RUN ls -la /workspace
44
-
45
- # ----------------------------
46
- # Fix Windows line endings
47
  # ----------------------------
48
  RUN dos2unix /workspace/entrypoint.sh || true
49
-
50
- # ----------------------------
51
- # Permissions (safe)
52
- # ----------------------------
53
  RUN chmod +x /workspace/entrypoint.sh || true
54
 
55
  # ----------------------------
56
  EXPOSE 7860
57
 
58
- CMD ["/workspace/entrypoint.sh"]
 
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
 
5
  ENV MODEL_NAME="hf.co/rahul7star/Qwen3-4B-Thinking-2509-Genius-Coder-AI-Full:Q5_K_M"
6
+ ENV OLLAMA_HOST=0.0.0.0:11434
7
 
8
  # ----------------------------
9
+ # System dependencies (FIXED)
10
  # ----------------------------
11
  RUN apt-get update && apt-get install -y \
12
  build-essential \
 
16
  python3-pip \
17
  redis-server \
18
  dos2unix \
19
+ zstd \
20
+ ca-certificates \
21
  && rm -rf /var/lib/apt/lists/*
22
 
23
  # ----------------------------
24
+ # Install Ollama (now works)
25
  # ----------------------------
26
  RUN curl -fsSL https://ollama.com/install.sh | sh
27
 
 
29
  WORKDIR /workspace
30
 
31
  # ----------------------------
32
+ # Python deps
33
  # ----------------------------
34
  COPY requirements.txt .
35
  RUN pip3 install --upgrade pip && pip3 install -r requirements.txt
36
 
37
  # ----------------------------
38
+ # Copy project
39
  # ----------------------------
40
  COPY . .
41
 
42
  # ----------------------------
43
+ # Fix scripts
 
 
 
 
 
44
  # ----------------------------
45
  RUN dos2unix /workspace/entrypoint.sh || true
 
 
 
 
46
  RUN chmod +x /workspace/entrypoint.sh || true
47
 
48
  # ----------------------------
49
  EXPOSE 7860
50
 
51
+ CMD ["bash", "/workspace/entrypoint.sh"]