tommulder commited on
Commit
65907ea
·
1 Parent(s): 1575bd1

start-server permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -17,6 +17,10 @@ RUN grep -A 1 'from vllm.entrypoints.cli.main import main' $(which vllm)
17
  # Set up a new user named "user" with user ID 1000
18
  RUN useradd -m -u 1000 user
19
 
 
 
 
 
20
  # Switch to the "user" user
21
  USER user
22
 
@@ -63,9 +67,5 @@ ENV PYTHONPATH="/home/user/.cache/huggingface/hub/models--rednote-hilab--dots.oc
63
  EXPOSE 7860
64
  ENV PORT=7860
65
 
66
- # Copy the startup script and make it executable
67
- COPY start_server.sh /home/user/app/start_server.sh
68
- RUN chmod +x /home/user/app/start_server.sh
69
-
70
  # Use the startup script as entrypoint
71
  ENTRYPOINT ["/home/user/app/start_server.sh"]
 
17
  # Set up a new user named "user" with user ID 1000
18
  RUN useradd -m -u 1000 user
19
 
20
+ # Copy the startup script and make it executable (as root)
21
+ COPY start_server.sh /home/user/app/start_server.sh
22
+ RUN chmod +x /home/user/app/start_server.sh
23
+
24
  # Switch to the "user" user
25
  USER user
26
 
 
67
  EXPOSE 7860
68
  ENV PORT=7860
69
 
 
 
 
 
70
  # Use the startup script as entrypoint
71
  ENTRYPOINT ["/home/user/app/start_server.sh"]