doniramdani810 commited on
Commit
de37a4d
·
1 Parent(s): 01ed544

Fix Dockerfile: Remove problematic OpenCV dependencies

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -3
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -3,13 +3,11 @@ FROM python:3.10-slim
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
  curl \
15
  && rm -rf /var/lib/apt/lists/*
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
+ # Install system dependencies (simplified for Hugging Face)
7
  RUN apt-get update && apt-get install -y \
 
8
  libglib2.0-0 \
9
  libsm6 \
10
  libxext6 \
 
11
  libgomp1 \
12
  curl \
13
  && rm -rf /var/lib/apt/lists/*
requirements.txt CHANGED
@@ -2,7 +2,7 @@ fastapi==0.104.1
2
  uvicorn[standard]==0.24.0
3
  pydantic==2.5.0
4
  numpy==1.24.3
5
- opencv-python==4.8.1.78
6
  Pillow==10.1.0
7
  PyYAML==6.0.1
8
  onnxruntime-cpu==1.15.1
 
2
  uvicorn[standard]==0.24.0
3
  pydantic==2.5.0
4
  numpy==1.24.3
5
+ opencv-python-headless==4.8.1.78
6
  Pillow==10.1.0
7
  PyYAML==6.0.1
8
  onnxruntime-cpu==1.15.1