Dan commited on
Commit
447eade
·
1 Parent(s): 51e0e82

change ollama pull

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -3
  2. ollama_pull.sh +0 -13
  3. on_startup.sh +5 -1
Dockerfile CHANGED
@@ -63,14 +63,13 @@ RUN --mount=target=/root/packages.txt,source=packages.txt \
63
  xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
64
  && rm -rf /var/lib/apt/lists/*
65
 
 
 
66
  RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
67
  bash /root/on_startup.sh
68
 
69
  RUN mkdir /data && chown user:user /data
70
 
71
- RUN curl -fsSL https://ollama.com/install.sh | sh
72
- COPY ollama_pull.sh ollama_pull.sh
73
- RUN chmod +x ollama_pull.sh && ./ollama_pull.sh
74
 
75
  #######################################
76
  # End root user section
 
63
  xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
64
  && rm -rf /var/lib/apt/lists/*
65
 
66
+ RUN curl -fsSL https://ollama.com/install.sh | sh
67
+
68
  RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite \
69
  bash /root/on_startup.sh
70
 
71
  RUN mkdir /data && chown user:user /data
72
 
 
 
 
73
 
74
  #######################################
75
  # End root user section
ollama_pull.sh DELETED
@@ -1,13 +0,0 @@
1
- #!/bin/bash
2
-
3
- echo "Starting Ollama server..."
4
- ollama serve &
5
-
6
-
7
- echo "Waiting for Ollama server to be active..."
8
- while [ "$(ollama list | grep 'NAME')" == "" ]; do
9
- sleep 1
10
- done
11
-
12
-
13
- ollama pull gemma3:4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
on_startup.sh CHANGED
@@ -1 +1,5 @@
1
- echo "HELLO"
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ echo "Starting Ollama server..."
4
+ ollama serve & ollama pull gemma3:4b
5
+ echo "Done."