Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -4,9 +4,16 @@ FROM python:3.10
|
|
| 4 |
# Set up the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Copy your requirements file and install dependencies
|
| 8 |
COPY requirements.txt requirements.txt
|
| 9 |
-
# Update pip and install the requirements
|
| 10 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 11 |
pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
|
|
|
| 4 |
# Set up the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# ---------------------------------------------------
|
| 8 |
+
# FIX: Install missing system libraries for OpenCV
|
| 9 |
+
# ---------------------------------------------------
|
| 10 |
+
RUN apt-get update && apt-get install -y \
|
| 11 |
+
libgl1 \
|
| 12 |
+
libglib2.0-0 \
|
| 13 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
+
|
| 15 |
# Copy your requirements file and install dependencies
|
| 16 |
COPY requirements.txt requirements.txt
|
|
|
|
| 17 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 18 |
pip install --no-cache-dir -r requirements.txt
|
| 19 |
|