ruslanmv commited on
Commit
65f5c45
1 Parent(s): 303ce0f
Files changed (2) hide show
  1. Dockerfile +0 -2
  2. init.sh +4 -2
Dockerfile CHANGED
@@ -27,8 +27,6 @@ RUN apt-get update && apt-get install -y \
27
  RUN python -m pip install --upgrade pip
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
30
- # Install Ollama
31
- RUN curl -fsSL https://ollama.com/install.sh | sh
32
 
33
  # Expose the port the application uses (replace 11434 with the actual port)
34
  EXPOSE 11434
 
27
  RUN python -m pip install --upgrade pip
28
  RUN pip install --no-cache-dir -r requirements.txt
29
 
 
 
30
 
31
  # Expose the port the application uses (replace 11434 with the actual port)
32
  EXPOSE 11434
init.sh CHANGED
@@ -1,7 +1,9 @@
1
  #!/bin/bash
 
 
2
 
3
  # Start Ollama in the background.
4
- /bin/ollama serve &
5
  # Record Process ID.
6
  pid=$!
7
 
@@ -9,7 +11,7 @@ pid=$!
9
  sleep 5
10
 
11
  echo "🔴 Retrieve LLAMA3 model..."
12
- /bin/ollama pull llama3
13
  echo "🟢 Done!"
14
  # Wait for Ollama process to finish.
15
  wait $pid
 
1
  #!/bin/bash
2
+ # Install Ollama
3
+ curl -fsSL https://ollama.com/install.sh | sh
4
 
5
  # Start Ollama in the background.
6
+ ollama serve &
7
  # Record Process ID.
8
  pid=$!
9
 
 
11
  sleep 5
12
 
13
  echo "🔴 Retrieve LLAMA3 model..."
14
+ ollama pull llama3
15
  echo "🟢 Done!"
16
  # Wait for Ollama process to finish.
17
  wait $pid