Update Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
CHANGED
|
@@ -13,7 +13,14 @@ USER appuser
|
|
| 13 |
|
| 14 |
# Set the working directory
|
| 15 |
WORKDIR /app
|
|
|
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
# Copy and install dependencies
|
| 18 |
COPY --chown=appuser:appuser requirements.txt .
|
| 19 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 13 |
|
| 14 |
# Set the working directory
|
| 15 |
WORKDIR /app
|
| 16 |
+
# ... existing code ...
|
| 17 |
|
| 18 |
+
# Install system dependencies for OpenCV
|
| 19 |
+
RUN apt-get update && apt-get install -y \
|
| 20 |
+
libgl1-mesa-glx \
|
| 21 |
+
libglib2.0-0
|
| 22 |
+
|
| 23 |
+
# ... existing code ...
|
| 24 |
# Copy and install dependencies
|
| 25 |
COPY --chown=appuser:appuser requirements.txt .
|
| 26 |
RUN pip install --no-cache-dir -r requirements.txt
|