rairo commited on
Commit
a330644
·
verified ·
1 Parent(s): 34fc7c3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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