Sbboss commited on
Commit
b525e5e
·
1 Parent(s): 06a5e6b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -17,12 +17,12 @@ 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 prelink \
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
 
 
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 patchelf \
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(['patchelf', '--clear-execstack', so])
26
  print('cleared execstack on', so)
27
  PY
28