Commit ·
4f51a47
1
Parent(s): 0966609
Fix Dockerfile: Use slim image and safe apt-get
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
-
FROM python:3.9
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies for OpenCV and GLib
|
| 6 |
-
RUN apt-get update && apt-get install -y \
|
| 7 |
libgl1-mesa-glx \
|
| 8 |
libglib2.0-0 \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies for OpenCV and GLib
|
| 6 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
libgl1-mesa-glx \
|
| 8 |
libglib2.0-0 \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|