RomRam1 commited on
Commit
fade729
·
verified ·
1 Parent(s): 6d371ac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,6 +1,5 @@
1
  FROM python:3.10-slim
2
 
3
- # 🔥 REQUIRED SYSTEM LIBS (THIS FIXES libGL.so.1 FOREVER)
4
  RUN apt-get update && apt-get install -y \
5
  libgl1 \
6
  libglib2.0-0 \
@@ -13,13 +12,10 @@ WORKDIR /app
13
 
14
  COPY requirements.txt .
15
 
16
- # 🔥 NUCLEAR CLEANUP (NO CACHE, NO GPU)
17
- RUN pip uninstall -y \
18
- opencv-python \
19
- opencv-contrib-python \
20
- mediapipe \
21
- mediapipe-gpu || true
22
 
 
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
25
  COPY . .
 
1
  FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
  libgl1 \
5
  libglib2.0-0 \
 
12
 
13
  COPY requirements.txt .
14
 
15
+ # 🔥 REMOVE STANDALONE KERAS IF PRESENT
16
+ RUN pip uninstall -y keras tensorflow-cpu tensorflow || true
 
 
 
 
17
 
18
+ # 🔥 INSTALL EXACT STACK
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
  COPY . .