Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -3,23 +3,23 @@ FROM python:3.9-slim
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
-
libgl1
|
| 7 |
libglib2.0-0 \
|
| 8 |
libsm6 \
|
| 9 |
libxext6 \
|
| 10 |
-
|
| 11 |
libgomp1 \
|
| 12 |
wget \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
-
# تثبيت NumPy 1.x أولاً
|
| 16 |
RUN pip install --no-cache-dir numpy==1.23.5
|
| 17 |
|
| 18 |
# تثبيت TensorFlow مع بقية المكتبات
|
| 19 |
RUN pip install --no-cache-dir \
|
| 20 |
tensorflow==2.13.0 \
|
| 21 |
gradio \
|
| 22 |
-
opencv-python \
|
| 23 |
pillow \
|
| 24 |
scikit-learn
|
| 25 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
+
libgl1 \
|
| 7 |
libglib2.0-0 \
|
| 8 |
libsm6 \
|
| 9 |
libxext6 \
|
| 10 |
+
libxrender1 \
|
| 11 |
libgomp1 \
|
| 12 |
wget \
|
| 13 |
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
+
# تثبيت NumPy 1.x أولاً
|
| 16 |
RUN pip install --no-cache-dir numpy==1.23.5
|
| 17 |
|
| 18 |
# تثبيت TensorFlow مع بقية المكتبات
|
| 19 |
RUN pip install --no-cache-dir \
|
| 20 |
tensorflow==2.13.0 \
|
| 21 |
gradio \
|
| 22 |
+
opencv-python-headless \
|
| 23 |
pillow \
|
| 24 |
scikit-learn
|
| 25 |
|