Sbboss commited on
Commit
610204e
·
1 Parent(s): dcfe73c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -15,6 +15,17 @@ RUN apt-get update \
15
  COPY requirements.txt /app/requirements.txt
16
  RUN pip install --no-cache-dir -r /app/requirements.txt
17
 
 
 
 
 
 
 
 
 
 
 
 
18
  # Copy app
19
  COPY . /app
20
 
 
15
  COPY requirements.txt /app/requirements.txt
16
  RUN pip install --no-cache-dir -r /app/requirements.txt
17
 
18
+ # Clear execstack on silero-vad-lite shared library (HF needs this)
19
+ RUN apt-get update \
20
+ && apt-get install -y --no-install-recommends execstack \
21
+ && rm -rf /var/lib/apt/lists/* \
22
+ && python - <<'PY' \
23
+ import silero_vad_lite, subprocess \
24
+ so = silero_vad_lite.__file__.replace('__init__.py', 'data/silero_vad_lite.so') \
25
+ subprocess.check_call(['execstack','-c',so]) \
26
+ print('cleared execstack on', so) \
27
+ PY
28
+
29
  # Copy app
30
  COPY . /app
31