ruslanmv commited on
Commit
aa4981d
1 Parent(s): 65f5c45
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. init.sh +1 -11
Dockerfile CHANGED
@@ -27,7 +27,10 @@ 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
 
 
31
  # Expose the port the application uses (replace 11434 with the actual port)
32
  EXPOSE 11434
33
 
 
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
+ RUN which ollama
34
  # Expose the port the application uses (replace 11434 with the actual port)
35
  EXPOSE 11434
36
 
init.sh CHANGED
@@ -1,15 +1,5 @@
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
-
10
- # Pause for Ollama to start.
11
- sleep 5
12
-
13
  echo "🔴 Retrieve LLAMA3 model..."
14
  ollama pull llama3
15
  echo "🟢 Done!"
 
1
  #!/bin/bash
2
+ which ollama
 
 
 
 
 
 
 
 
 
 
3
  echo "🔴 Retrieve LLAMA3 model..."
4
  ollama pull llama3
5
  echo "🟢 Done!"