ruslanmv commited on
Commit
4331d1e
1 Parent(s): 04b278f
Files changed (2) hide show
  1. Dockerfile +1 -2
  2. start.sh +2 -15
Dockerfile CHANGED
@@ -21,9 +21,8 @@ RUN apt-get update && apt-get install -y \
21
  RUN python -m pip install --upgrade pip
22
  RUN pip install --no-cache-dir -r requirements.txt
23
  # Install Ollama
24
- RUN curl -fsSL https://ollama.com/install.sh | sh && ollama serve
25
  RUN mkdir -p /.ollama && chmod 777 /.ollama
26
- WORKDIR /.ollama
27
  RUN which ollama
28
  # Expose the port the application uses (replace 11434 with the actual port)
29
  EXPOSE 11434
 
21
  RUN python -m pip install --upgrade pip
22
  RUN pip install --no-cache-dir -r requirements.txt
23
  # Install Ollama
24
+ RUN curl -fsSL https://ollama.com/install.sh | sh
25
  RUN mkdir -p /.ollama && chmod 777 /.ollama
 
26
  RUN which ollama
27
  # Expose the port the application uses (replace 11434 with the actual port)
28
  EXPOSE 11434
start.sh CHANGED
@@ -1,21 +1,8 @@
1
  #!/bin/bash
2
-
3
  # Starting server
4
  echo "Starting server"
5
  ollama serve &
6
  sleep 1
 
 
7
 
8
- # Splitting the models by comma and pulling each
9
- IFS=',' read -ra MODELS <<< "$model"
10
- for m in "${MODELS[@]}"; do
11
- echo "Pulling $m"
12
- ollama pull "$m"
13
- sleep 5
14
- ollama pull "$m"
15
- # echo "Running $m"
16
- # ollama run "$m"
17
- # No need to sleep here unless you want to give some delay between each pull for some reason
18
- done
19
-
20
- # Keep the script running to prevent the container from exiting
21
- wait
 
1
  #!/bin/bash
 
2
  # Starting server
3
  echo "Starting server"
4
  ollama serve &
5
  sleep 1
6
+ ollama pull llama3
7
+ python run.py
8