darkstorm2150 commited on
Commit
ece2dd3
·
verified ·
1 Parent(s): 7c9dec7

Update Dockerfile

Browse files

Fixed non-root issue

Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -15,6 +15,10 @@ RUN apt-get update && \
15
  libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && \
16
  rm -rf /var/lib/apt/lists/*
17
 
 
 
 
 
18
  # Combine pip installations into a single layer
19
  RUN pip3 install --upgrade pip==23.3.1 && \
20
  pip install --no-cache-dir \
 
15
  libgl1 libglib2.0-0 wget git git-lfs python3-pip python-is-python3 && \
16
  rm -rf /var/lib/apt/lists/*
17
 
18
+ # Switch to user after system setup
19
+ WORKDIR /content
20
+ USER user
21
+
22
  # Combine pip installations into a single layer
23
  RUN pip3 install --upgrade pip==23.3.1 && \
24
  pip install --no-cache-dir \