Shiva Subhan S commited on
Commit
4988387
·
1 Parent(s): 160659c

Add OpenCV dependencies to fix libGL.so.1 error

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -1,6 +1,13 @@
1
  FROM python:3.9-slim
 
 
 
 
 
 
 
2
  WORKDIR /app
3
  COPY requirements.txt .
4
  RUN pip install -r requirements.txt
5
  COPY . .
6
- CMD ["python", "app.py"]
 
1
  FROM python:3.9-slim
2
+
3
+ # Install system dependencies for OpenCV
4
+ RUN apt-get update && apt-get install -y \
5
+ libgl1-mesa-glx \
6
+ libglib2.0-0 \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
  WORKDIR /app
10
  COPY requirements.txt .
11
  RUN pip install -r requirements.txt
12
  COPY . .
13
+ CMD ["python", "model2.py"]