yamanavijayavardhan commited on
Commit
cb21ef1
·
1 Parent(s): 4c7a796

Added Dockerfile with OpenCV dependencies

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -3
Dockerfile CHANGED
@@ -1,10 +1,18 @@
1
- FROM python:3.9
2
 
3
  WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
 
 
 
 
 
 
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY . /code
 
9
 
10
  CMD ["python", "main.py"]
 
1
+ FROM python:3.10.8
2
 
3
  WORKDIR /code
4
 
5
+ # Install system dependencies for OpenCV
6
+ RUN apt-get update && apt-get install -y \
7
+ libgl1-mesa-glx \
8
+ libglib2.0-0 \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Copy and install Python requirements
12
+ COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # Copy the rest of the application
16
+ COPY . .
17
 
18
  CMD ["python", "main.py"]