MAS-AI-0000 Kooale325 commited on
Commit
0e43eb4
·
1 Parent(s): d5fddc6

Update Dockerfile (#1)

Browse files

- Update Dockerfile (e8fb93bad0724ad9cd9a0c6a19e9f302cec95831)


Co-authored-by: Kooale <Kooale325@users.noreply.huggingface.co>

Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -11,13 +11,7 @@ RUN apt-get update && apt-get install -y \
11
  libxext6 \
12
  libxrender1 \
13
  && rm -rf /var/lib/apt/lists/*
14
-
15
-
16
- # Create and switch to a non-root user
17
- RUN useradd -m -u 1000 user
18
- USER user
19
- ENV PATH="/home/user/.local/bin:$PATH"
20
-
21
  RUN apt-get update && apt-get install -y \
22
  libxi6 \
23
  libsm6 \
@@ -32,6 +26,11 @@ RUN apt-get update && apt-get install -y \
32
  # Clean up apt cache to reduce image size
33
  && rm -rf /var/lib/apt/lists/*
34
 
 
 
 
 
 
35
  # Set working directory
36
  WORKDIR /app
37
 
 
11
  libxext6 \
12
  libxrender1 \
13
  && rm -rf /var/lib/apt/lists/*
14
+
 
 
 
 
 
 
15
  RUN apt-get update && apt-get install -y \
16
  libxi6 \
17
  libsm6 \
 
26
  # Clean up apt cache to reduce image size
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
+ # Create and switch to a non-root user
30
+ RUN useradd -m -u 1000 user
31
+ USER user
32
+ ENV PATH="/home/user/.local/bin:$PATH"
33
+
34
  # Set working directory
35
  WORKDIR /app
36