arindae commited on
Commit
568b0c8
·
1 Parent(s): 8752244

corrected dockerfile again

Browse files
Files changed (1) hide show
  1. 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 pip install --no-cache-dir patchelf \
9
- && find / -name "libctranslate2*.so*" -exec patchelf --clear-execstack {} \; 2>/dev/null || true
 
 
 
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 .