csepartha commited on
Commit
b4084df
·
verified ·
1 Parent(s): 2b8669f

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. demo.launcher +3 -3
Dockerfile CHANGED
@@ -23,7 +23,7 @@ RUN useradd -ms /bin/bash user && chown -R user:user ./server.py ./client.py ./d
23
  USER user
24
 
25
  # Expose the port that Gradio will use
26
- EXPOSE 7860
27
 
28
  # Start the demo.launcher script to run everything
29
  CMD ["./demo.launcher"]
 
23
  USER user
24
 
25
  # Expose the port that Gradio will use
26
+ EXPOSE 7860 8000
27
 
28
  # Start the demo.launcher script to run everything
29
  CMD ["./demo.launcher"]
demo.launcher CHANGED
@@ -1,6 +1,6 @@
1
  #!/bin/bash
2
 
3
- # Ensure that Ollama model is pulled
4
  echo "Pulling Ollama model (granite3.1-moe)..."
5
  ollama pull granite3.1-moe
6
 
@@ -8,8 +8,8 @@ ollama pull granite3.1-moe
8
  echo "Starting Ollama API server..."
9
  ollama serve &
10
 
11
- # Wait for Ollama server to be ready (increase the sleep time if needed)
12
- sleep 10
13
 
14
  # Start MCP server in the background
15
  echo "Starting MCP server..."
 
1
  #!/bin/bash
2
 
3
+ # Ensure Ollama model is pulled
4
  echo "Pulling Ollama model (granite3.1-moe)..."
5
  ollama pull granite3.1-moe
6
 
 
8
  echo "Starting Ollama API server..."
9
  ollama serve &
10
 
11
+ # Wait for Ollama server to be ready (increase the sleep time to 20 seconds)
12
+ sleep 20
13
 
14
  # Start MCP server in the background
15
  echo "Starting MCP server..."