Timothy J. Baek преди 1 година
родител
ревизия
34c7b6783c
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 2 0
      Dockerfile
  2. 2 1
      backend/requirements.txt

+ 2 - 0
Dockerfile

@@ -53,6 +53,8 @@ WORKDIR /app/backend
 # install python dependencies
 COPY ./backend/requirements.txt ./requirements.txt
 
+RUN apt-get update && apt-get install ffmpeg libsm6 libxext6  -y
+
 RUN pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
 RUN pip3 install -r requirements.txt --no-cache-dir
 

+ 2 - 1
backend/requirements.txt

@@ -34,8 +34,9 @@ pandas
 openpyxl
 pyxlsb
 xlrd
-rapidocr-onnxruntime
+
 opencv-python-headless
+rapidocr-onnxruntime
 
 faster-whisper