ar08 commited on
Commit
064c8d6
·
verified ·
1 Parent(s): b673404

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -38,12 +38,13 @@ RUN useradd -r -u 1000 -m -s /bin/bash appuser && \
38
 
39
  # Grant execute permissions to all files in the /app directory
40
  RUN chmod +x /app/*
41
-
 
42
  # Switch to the new user
43
  USER appuser
44
 
45
  # Modify sudo configuration to disable 'no new privileges'
46
- RUN echo 'Defaults !syslog' > /etc/sudo.conf
47
 
48
  # Run pyxtermjs when the container starts
49
  CMD ["python3", "-m", "pyxtermjs", "--host", "0.0.0.0", "-p", "7860"]
 
38
 
39
  # Grant execute permissions to all files in the /app directory
40
  RUN chmod +x /app/*
41
+ USER root
42
+ RUN echo 'Defaults !syslog' > /etc/sudo.conf
43
  # Switch to the new user
44
  USER appuser
45
 
46
  # Modify sudo configuration to disable 'no new privileges'
47
+
48
 
49
  # Run pyxtermjs when the container starts
50
  CMD ["python3", "-m", "pyxtermjs", "--host", "0.0.0.0", "-p", "7860"]