darkstorm2150 commited on
Commit
5f6a4fa
·
verified ·
1 Parent(s): 1246b5a

Update Dockerfile

Browse files

added root to system dependencies, and switch to user.

Files changed (1) hide show
  1. Dockerfile +1 -3
Dockerfile CHANGED
@@ -6,8 +6,6 @@ ENV DEBIAN_FRONTEND=noninteractive
6
  RUN adduser --disabled-password --gecos '' user && \
7
  mkdir -p /content/stable-diffusion-webui/models/Stable-diffusion && \
8
  chown -R user:user /content
9
- WORKDIR /content
10
- USER user
11
 
12
  # Install system dependencies efficiently
13
  RUN apt-get update && \
@@ -17,7 +15,7 @@ RUN apt-get update && \
17
 
18
  # Switch to user after system setup
19
  WORKDIR /content
20
- USER root
21
 
22
  # Combine pip installations into a single layer
23
  RUN pip3 install --upgrade pip==23.3.1 && \
 
6
  RUN adduser --disabled-password --gecos '' user && \
7
  mkdir -p /content/stable-diffusion-webui/models/Stable-diffusion && \
8
  chown -R user:user /content
 
 
9
 
10
  # Install system dependencies efficiently
11
  RUN apt-get update && \
 
15
 
16
  # Switch to user after system setup
17
  WORKDIR /content
18
+ USER user
19
 
20
  # Combine pip installations into a single layer
21
  RUN pip3 install --upgrade pip==23.3.1 && \