Update Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
CHANGED
|
@@ -3,6 +3,16 @@ FROM python:3.10-slim
|
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# Clone the FastSD CPU repository
|
| 7 |
RUN git clone https://github.com/rupeshs/fastsdcpu.git .
|
| 8 |
|
|
|
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# Install system dependencies, including libgl1 for OpenCV
|
| 7 |
+
RUN apt-get update && apt-get install -y \
|
| 8 |
+
git \
|
| 9 |
+
git-lfs \
|
| 10 |
+
gcc \
|
| 11 |
+
python3-dev \
|
| 12 |
+
libgl1 \
|
| 13 |
+
libglib2.0-0 \
|
| 14 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 15 |
+
|
| 16 |
# Clone the FastSD CPU repository
|
| 17 |
RUN git clone https://github.com/rupeshs/fastsdcpu.git .
|
| 18 |
|