Fix: add libgomp1 for onnxruntime
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -2,13 +2,16 @@ FROM python:3.11-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 6 |
espeak-ng libespeak-ng1 \
|
|
|
|
| 7 |
&& rm -rf /var/lib/apt/lists/*
|
| 8 |
|
| 9 |
-
# Install
|
|
|
|
| 10 |
RUN pip install --no-cache-dir \
|
| 11 |
-
onnxruntime==1.
|
| 12 |
numpy==1.26.4 \
|
| 13 |
soundfile==0.12.1 \
|
| 14 |
fastapi==0.115.0 \
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install system dependencies for onnxruntime and espeak-ng
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
espeak-ng libespeak-ng1 \
|
| 8 |
+
libgomp1 \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
+
# Install Python dependencies
|
| 12 |
+
# Use compatible onnxruntime version
|
| 13 |
RUN pip install --no-cache-dir \
|
| 14 |
+
onnxruntime==1.20.0 \
|
| 15 |
numpy==1.26.4 \
|
| 16 |
soundfile==0.12.1 \
|
| 17 |
fastapi==0.115.0 \
|