GandalfTheBlack commited on
Commit
f5bfd64
·
verified ·
1 Parent(s): 7bd347f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  # Use Python 3.7 (Slim Debian-based)
2
  FROM python:3.7-slim
3
 
4
- # Install system dependencies for Lucid and OpenCV
5
  RUN apt-get update && apt-get install -y \
6
  libgl1-mesa-glx \
7
  libglib2.0-0 \
@@ -17,12 +17,13 @@ ENV HOME=/home/user \
17
 
18
  WORKDIR $HOME/app
19
 
20
- # Upgrade pip and set up the legacy stack
21
- # Note: numpy 1.18.5 is required for TF 1.15.5 compatibility
22
  RUN pip install --no-cache-dir --upgrade pip && \
23
  pip install --no-cache-dir \
24
  numpy==1.18.5 \
25
  tensorflow==1.15.5 \
 
26
  lucid>=0.2.3 \
27
  gradio==3.34.0 \
28
  Pillow
 
1
  # Use Python 3.7 (Slim Debian-based)
2
  FROM python:3.7-slim
3
 
4
+ # Install system dependencies
5
  RUN apt-get update && apt-get install -y \
6
  libgl1-mesa-glx \
7
  libglib2.0-0 \
 
17
 
18
  WORKDIR $HOME/app
19
 
20
+ # Upgrade pip and install the legacy stack
21
+ # CRITICAL: Added protobuf==3.19.6 to fix the Descriptor error
22
  RUN pip install --no-cache-dir --upgrade pip && \
23
  pip install --no-cache-dir \
24
  numpy==1.18.5 \
25
  tensorflow==1.15.5 \
26
+ protobuf==3.19.6 \
27
  lucid>=0.2.3 \
28
  gradio==3.34.0 \
29
  Pillow