Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -12,7 +12,11 @@ RUN pip install --no-cache-dir opencv-python requests
|
|
| 12 |
|
| 13 |
# Expose any required ports (if necessary, not for this app specifically)
|
| 14 |
# EXPOSE 8080
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Copy the requirements file
|
| 18 |
COPY requirements.txt /app/requirements.txt
|
|
|
|
| 12 |
|
| 13 |
# Expose any required ports (if necessary, not for this app specifically)
|
| 14 |
# EXPOSE 8080
|
| 15 |
+
# Install dependencies for OpenCV to work
|
| 16 |
+
RUN apt-get update && apt-get install -y \
|
| 17 |
+
libgl1-mesa-glx \
|
| 18 |
+
libglib2.0-0 \
|
| 19 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 20 |
|
| 21 |
# Copy the requirements file
|
| 22 |
COPY requirements.txt /app/requirements.txt
|