Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,15 @@ ENV PYTHONUNBUFFERED 1
|
|
| 8 |
# Set the working directory inside the container
|
| 9 |
WORKDIR /app
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# Copy the requirements file into the container at /app
|
| 12 |
COPY requirements.txt /app/
|
| 13 |
|
|
|
|
| 8 |
# Set the working directory inside the container
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
+
# Install system dependencies required by OpenCV and other libraries
|
| 12 |
+
RUN apt-get update && apt-get install -y \
|
| 13 |
+
libgl1 \
|
| 14 |
+
libglib2.0-0 \
|
| 15 |
+
libsm6 \
|
| 16 |
+
libxext6 \
|
| 17 |
+
libxrender1 \
|
| 18 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 19 |
+
|
| 20 |
# Copy the requirements file into the container at /app
|
| 21 |
COPY requirements.txt /app/
|
| 22 |
|