ridoo14 commited on
Commit
a48622f
·
verified ·
1 Parent(s): e076f1e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -4,13 +4,17 @@ FROM python:3.11-slim
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
- #Handle opencv dependencies(libGL)
8
- RUN apt-get update && apt-get install -y libgl1 && apt-get clean && rm -rf /var/lib/apt/lists/*
 
 
 
 
9
 
10
  # Copy the requirements file into the container
11
  COPY requirements.txt .
12
 
13
- # Install dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  # Copy the entire FastAPI app into the container
 
4
  # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Install system dependencies required for OpenCV and other libraries
8
+ RUN apt-get update && apt-get install -y \
9
+ libgl1 \
10
+ libglib2.0-0 \
11
+ libgthread-2.0-0 \
12
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
13
 
14
  # Copy the requirements file into the container
15
  COPY requirements.txt .
16
 
17
+ # Install Python dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  # Copy the entire FastAPI app into the container