akiko19191 commited on
Commit
feaa5d8
·
verified ·
1 Parent(s): 70e0304

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -27,7 +27,7 @@ RUN mkdir -p /app/uploads/temp \
27
  # Copy configuration and tests
28
  COPY librechat.yaml /app/librechat.yaml
29
  COPY tests.py /app/tests.py
30
-
31
  RUN adduser -S -D -u 0 admin
32
 
33
  # (Optional) Add the admin user to the root group for completeness
@@ -35,6 +35,7 @@ RUN addgroup admin root
35
 
36
  # Switch to the admin user (now root-equivalent)
37
  USER admin
 
38
  # --- Build Stage ---
39
  # Temporarily switch to root for package installation
40
  # USER root
 
27
  # Copy configuration and tests
28
  COPY librechat.yaml /app/librechat.yaml
29
  COPY tests.py /app/tests.py
30
+ USER root
31
  RUN adduser -S -D -u 0 admin
32
 
33
  # (Optional) Add the admin user to the root group for completeness
 
35
 
36
  # Switch to the admin user (now root-equivalent)
37
  USER admin
38
+ RUN su - admin
39
  # --- Build Stage ---
40
  # Temporarily switch to root for package installation
41
  # USER root