amogneandualem commited on
Commit
2b474a3
·
verified ·
1 Parent(s): 44366b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,20 +1,24 @@
 
1
  FROM docker.io/ollama/ollama:latest
2
 
3
- # Install Python, pip, and necessary image dependencies (opencv-python-headless needs these)
4
  RUN apt-get update && \
5
  apt-get install -y --no-install-recommends \
6
  python3 \
7
  python3-pip \
8
- gunicorn \
9
  libgl1-mesa-glx && \
10
  apt-get clean && \
11
  rm -rf /var/lib/apt/lists/*
12
 
 
13
  WORKDIR /app
 
 
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
17
  COPY . .
18
 
19
- # Use python to launch the Gradio app directly
20
  ENTRYPOINT ["/bin/bash", "start.sh"]
 
1
+ # Use the official Ollama image as the base
2
  FROM docker.io/ollama/ollama:latest
3
 
4
+ # Install Python, pip, and necessary system dependencies (opencv/gradio)
5
  RUN apt-get update && \
6
  apt-get install -y --no-install-recommends \
7
  python3 \
8
  python3-pip \
 
9
  libgl1-mesa-glx && \
10
  apt-get clean && \
11
  rm -rf /var/lib/apt/lists/*
12
 
13
+ # Set the working directory
14
  WORKDIR /app
15
+
16
+ # Copy and install Python dependencies (Gradio, Requests, Pillow, etc.)
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
+ # Copy all application files
21
  COPY . .
22
 
23
+ # Set the entry point to our startup script
24
  ENTRYPOINT ["/bin/bash", "start.sh"]