qgallouedec HF Staff commited on
Commit
728c826
·
1 Parent(s): c9d2e73

remove user

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -11
Dockerfile CHANGED
@@ -20,20 +20,9 @@ RUN pip install --upgrade pip && \
20
  # Make script executable and move it to PATH
21
  RUN install -m 755 sft.py /usr/local/bin/sft
22
 
23
- # Create a non-root user
24
- RUN useradd --create-home appuser
25
- RUN chown -R appuser:appuser /usr/src/app
26
-
27
  # Set environment variables
28
  ENV XDG_CACHE_HOME=/usr/src/app/cache
29
 
30
- # Use non-root user
31
- USER appuser
32
-
33
- RUN useradd -u 1000 trluser
34
- USER trluser
35
-
36
-
37
  # Expose the Gradio port
38
  EXPOSE 7860
39
  ENV GRADIO_SERVER_NAME="0.0.0.0"
 
20
  # Make script executable and move it to PATH
21
  RUN install -m 755 sft.py /usr/local/bin/sft
22
 
 
 
 
 
23
  # Set environment variables
24
  ENV XDG_CACHE_HOME=/usr/src/app/cache
25
 
 
 
 
 
 
 
 
26
  # Expose the Gradio port
27
  EXPOSE 7860
28
  ENV GRADIO_SERVER_NAME="0.0.0.0"