Create entrypoint.sh
Browse files- entrypoint.sh +8 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
|
| 3 |
+
# Start Ollama in background (binds to localhost only)
|
| 4 |
+
ollama run "$OLLAMA_MODEL" --modelfile /dev/null &
|
| 5 |
+
serve &
|
| 6 |
+
|
| 7 |
+
# Start Nginx reverse proxy (auth token check)
|
| 8 |
+
nginx -g 'daemon off;'
|