EthanStanks commited on
Commit
d57ebea
Β·
verified Β·
1 Parent(s): 13b17bc

Fix opencv error

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -23,6 +23,8 @@ RUN mkdir /app/transformers_cache /app/torch_extensions && \
23
  COPY --chown=user . /app
24
 
25
  RUN pip uninstall opencv-python
 
 
26
  RUN pip install -r requirements.txt
27
 
28
  EXPOSE 7860
 
23
  COPY --chown=user . /app
24
 
25
  RUN pip uninstall opencv-python
26
+ RUN pip install opencv-python-headless==4.5.4.60
27
+ RUN apt-get update && apt-get install -y libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly
28
  RUN pip install -r requirements.txt
29
 
30
  EXPOSE 7860