bsmith3715 commited on
Commit
4422906
·
verified ·
1 Parent(s): 1440544

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -4,9 +4,15 @@ FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
4
  # Add user - this is the user that will run the app
5
  # If you do not set user, the app will run as root (undesirable)
6
  RUN useradd -m -u 1000 user
7
- USER user
8
 
9
- RUN apt-get update && apt-get install -y libgl1-mesa-glx
 
 
 
 
 
 
 
10
 
11
  # Set the home directory and path
12
  ENV HOME=/home/user \
 
4
  # Add user - this is the user that will run the app
5
  # If you do not set user, the app will run as root (undesirable)
6
  RUN useradd -m -u 1000 user
 
7
 
8
+ USER root
9
+
10
+ # Install OpenCV dependency
11
+ RUN apt-get update && apt-get install -y libgl1-mesa-glx && \
12
+ apt-get clean && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Switch back to user
15
+ USER user
16
 
17
  # Set the home directory and path
18
  ENV HOME=/home/user \