Spaces:
Sleeping
Sleeping
corrected dockerfile again
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -5,8 +5,11 @@ COPY backend/requirements.txt backend/requirements-convert.txt ./
|
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt \
|
| 6 |
&& pip install --no-cache-dir -r requirements-convert.txt --extra-index-url https://download.pytorch.org/whl/cpu
|
| 7 |
|
| 8 |
-
RUN
|
| 9 |
-
&& find / -name "libctranslate2*.so*"
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
COPY . .
|
| 12 |
COPY entrypoint.sh .
|
|
|
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt \
|
| 6 |
&& pip install --no-cache-dir -r requirements-convert.txt --extra-index-url https://download.pytorch.org/whl/cpu
|
| 7 |
|
| 8 |
+
RUN apt-get update && apt-get install -y --no-install-recommends patchelf \
|
| 9 |
+
&& SO_FILES=$(find / -name "libctranslate2*.so*" 2>/dev/null) \
|
| 10 |
+
&& echo "Found CTranslate2 .so files: $SO_FILES" \
|
| 11 |
+
&& for f in $SO_FILES; do patchelf --clear-execstack "$f" && echo "Patched: $f"; done \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
COPY . .
|
| 15 |
COPY entrypoint.sh .
|