sloneckity commited on
Commit
4b664ae
·
1 Parent(s): fdd8001

Add OpenCV system dependencies to Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -4,6 +4,15 @@ FROM python:3.9-slim
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
 
 
 
 
 
 
 
 
 
7
  # Copy the requirements file into the container at /app
8
  COPY requirements.txt .
9
 
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Install system dependencies required by OpenCV and other packages
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ libgl1-mesa-glx \
10
+ libglib2.0-0 \
11
+ libsm6 \
12
+ libxrender1 \
13
+ libxext6 \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
  # Copy the requirements file into the container at /app
17
  COPY requirements.txt .
18