Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
| 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(['
|
| 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 |
|