Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
### Set up user with permissions
|
| 4 |
# Set up a new user named "user" with user ID 1000
|
| 5 |
RUN useradd -m -u 1000 user
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
+
# FIXED: Install the missing system dependency for OpenCV before doing anything else.
|
| 4 |
+
# This must be run as root, which is the default user at the start of the build.
|
| 5 |
+
RUN apt-get update && apt-get install -y libgl1-mesa-glx
|
| 6 |
+
|
| 7 |
### Set up user with permissions
|
| 8 |
# Set up a new user named "user" with user ID 1000
|
| 9 |
RUN useradd -m -u 1000 user
|