Malaji71 commited on
Commit
d188fd1
·
verified ·
1 Parent(s): a741c59

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -3
Dockerfile CHANGED
@@ -1,18 +1,26 @@
 
 
 
 
1
  FROM python:3.10-slim
2
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
- # Install system dependencies
7
  RUN apt-get update && apt-get install -y \
8
- libgl1-mesa-glx \
9
  libglib2.0-0 \
10
  libsm6 \
11
  libxext6 \
12
  libxrender-dev \
13
  libgomp1 \
14
- libglib2.0-0 \
15
  libgtk-3-0 \
 
 
 
 
 
16
  ffmpeg \
17
  && rm -rf /var/lib/apt/lists/*
18
 
 
1
+ # Alternative: Use ubuntu base for better OpenCV compatibility
2
+ # FROM ubuntu:22.04
3
+ # RUN apt-get update && apt-get install -y python3.10 python3-pip
4
+
5
  FROM python:3.10-slim
6
 
7
  # Set working directory
8
  WORKDIR /app
9
 
10
+ # Install system dependencies with updated OpenGL packages
11
  RUN apt-get update && apt-get install -y \
12
+ libgl1-mesa-dev \
13
  libglib2.0-0 \
14
  libsm6 \
15
  libxext6 \
16
  libxrender-dev \
17
  libgomp1 \
 
18
  libgtk-3-0 \
19
+ libgstreamer1.0-0 \
20
+ libgstreamer-plugins-base1.0-0 \
21
+ libavcodec-dev \
22
+ libavformat-dev \
23
+ libswscale-dev \
24
  ffmpeg \
25
  && rm -rf /var/lib/apt/lists/*
26