debug transcription
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -17,6 +17,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 17 |
build-essential \
|
| 18 |
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
| 19 |
&& apt-get install -y nodejs \
|
|
|
|
| 20 |
&& rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
# Set working directory
|
|
@@ -31,6 +32,10 @@ RUN pip install --upgrade pip
|
|
| 31 |
# Install Python dependencies
|
| 32 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
# Copy the rest of the application
|
| 35 |
COPY . .
|
| 36 |
|
|
|
|
| 17 |
build-essential \
|
| 18 |
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
| 19 |
&& apt-get install -y nodejs \
|
| 20 |
+
&& apt-get install -y patchelf \
|
| 21 |
&& rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
# Set working directory
|
|
|
|
| 32 |
# Install Python dependencies
|
| 33 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 34 |
|
| 35 |
+
# Fix for "cannot enable executable stack" error on HF Spaces
|
| 36 |
+
# Find all libctranslate2 shared objects and clear the executable stack flag
|
| 37 |
+
RUN find /usr/local/lib/python3.11/site-packages/ctranslate2 -name '*.so' -exec patchelf --clear-execstack {} \;
|
| 38 |
+
|
| 39 |
# Copy the rest of the application
|
| 40 |
COPY . .
|
| 41 |
|