prince1604 commited on
Commit
8853d7b
·
1 Parent(s): d168db2

Fix user ID conflict

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -16,7 +16,8 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
  COPY . /code
17
 
18
  # Create a non-root user (Hugging Face Spaces recommendation)
19
- RUN useradd -m -u 1000 user
 
20
 
21
  # Change ownership of the application directory to the non-root user
22
  RUN chown -R user:user /code
 
16
  COPY . /code
17
 
18
  # Create a non-root user (Hugging Face Spaces recommendation)
19
+ # We let the system pick the UID (likely 1001) since 1000 is already taken in this image
20
+ RUN useradd -m user
21
 
22
  # Change ownership of the application directory to the non-root user
23
  RUN chown -R user:user /code