File size: 424 Bytes
c9e8946
a5ae591
 
c9e8946
 
 
a5ae591
 
c9e8946
a5ae591
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# Start the server in the background
echo "Starting server"
ollama serve &
sleep 1

# Pull the specified model
echo "Pulling $model"
ollama pull $model

# Wait a bit for the model to be ready
sleep 5

# Run the specified model
echo "Running $model"
ollama run $model

# Keep the script running to prevent the container from exiting
# Adjust the command below as needed based on your application's behavior
wait