hz2475 commited on
Commit
cc3c56d
·
1 Parent(s): 6273ec7
Files changed (2) hide show
  1. Dockerfile +2 -0
  2. start.sh +4 -0
Dockerfile CHANGED
@@ -6,6 +6,8 @@ FROM python:3.11
6
  RUN useradd -m -u 1000 user
7
  USER user
8
  ENV PATH="/home/user/.local/bin:$PATH"
 
 
9
 
10
  WORKDIR /app
11
 
 
6
  RUN useradd -m -u 1000 user
7
  USER user
8
  ENV PATH="/home/user/.local/bin:$PATH"
9
+ RUN apt-get update && apt-get install -y openssh-client sshpass
10
+
11
 
12
  WORKDIR /app
13
 
start.sh CHANGED
@@ -1,4 +1,8 @@
1
  #!/bin/bash
 
 
 
 
2
  python -m starvector.serve.vllm_api_gradio.controller --host 0.0.0.0 --port 10000 &
3
  python -m starvector.serve.vllm_api_gradio.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-name /home/agent_h/data/starvector-1b-im2svg --vllm-base-url http://localhost:8000 &
4
  python -m starvector.serve.vllm_api_gradio.gradio_web_server --controller http://localhost:10000 --model-list-mode reload --port 7860
 
1
  #!/bin/bash
2
+
3
+ bash -c "$SSH_TUNNEL_CMD_1" &
4
+
5
+ echo "SSH tunnel started, PID: $SSH_PID"
6
  python -m starvector.serve.vllm_api_gradio.controller --host 0.0.0.0 --port 10000 &
7
  python -m starvector.serve.vllm_api_gradio.model_worker --host 0.0.0.0 --controller http://localhost:10000 --port 40000 --worker http://localhost:40000 --model-name /home/agent_h/data/starvector-1b-im2svg --vllm-base-url http://localhost:8000 &
8
  python -m starvector.serve.vllm_api_gradio.gradio_web_server --controller http://localhost:10000 --model-list-mode reload --port 7860