Dina-Raslan commited on
Commit
daad248
·
verified ·
1 Parent(s): 97635a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -2,6 +2,16 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system libraries required by opencv-python (used internally by ultralytics)
6
+ RUN apt-get update && apt-get install -y \
7
+ libgl1 \
8
+ libglib2.0-0 \
9
+ libxcb1 \
10
+ libxext6 \
11
+ libsm6 \
12
+ libxrender1 \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17