Luigi commited on
Commit
65e6b09
·
1 Parent(s): b3ec254

Fix runtime error: add libgomp1 for OpenMP support

Browse files

The prebuilt wheel requires libgomp.so.1 (GNU OpenMP runtime)
which is not included in python:3.10-slim base image

Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -2,10 +2,11 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install minimal system dependencies (OpenBLAS for the prebuilt wheel)
6
  RUN apt-get update && apt-get install -y \
7
  libopenblas-dev \
8
  libopencc-dev \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  # Install llama-cpp-python from prebuilt wheel (FAST - no build needed!)
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install minimal system dependencies (OpenBLAS + OpenMP for the prebuilt wheel)
6
  RUN apt-get update && apt-get install -y \
7
  libopenblas-dev \
8
  libopencc-dev \
9
+ libgomp1 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Install llama-cpp-python from prebuilt wheel (FAST - no build needed!)