VietCat Amp commited on
Commit
a5940e8
·
1 Parent(s): 318d064

Force reinstall opencv-python-headless to override full opencv

Browse files

Amp-Thread-ID: https://ampcode.com/threads/T-22e83726-d77c-475f-b185-6d55f37c5979
Co-authored-by: Amp <amp@ampcode.com>

Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -4,7 +4,8 @@ WORKDIR /app
4
 
5
  # Copy requirements first to leverage Docker cache
6
  COPY requirements.txt .
7
- RUN pip install --no-cache-dir -r requirements.txt
 
8
 
9
  # Copy application files
10
  COPY app.py model.py config.yaml .
 
4
 
5
  # Copy requirements first to leverage Docker cache
6
  COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt && \
8
+ pip install --no-cache-dir --force-reinstall opencv-python-headless==4.9.0.80
9
 
10
  # Copy application files
11
  COPY app.py model.py config.yaml .